mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-24 04:46:34 +00:00
refactor: use InputManager for screens, DPI-aware InputManager
This commit is contained in:
@@ -44,7 +44,6 @@ void Button::render(Minecraft *minecraft, int xm, int ym)
|
||||
glBindTexture(GL_TEXTURE_2D, minecraft->textures->loadTexture(TN_GUI_GUI)); // 4J was L"/gui/gui.png"
|
||||
glColor4f(1, 1, 1, 1);
|
||||
|
||||
|
||||
bool hovered = xm >= x && ym >= y && xm < x + w && ym < y + h;
|
||||
int yImage = getYImage(hovered);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user