Fix Button Hover

This commit is contained in:
TheBrokenRail 2024-02-02 22:28:57 -05:00
parent a336cd1c7b
commit ddd9226e9e

View File

@ -29,7 +29,7 @@ static int32_t Button_hovered_injection(__attribute__((unused)) Button *button,
int32_t button_y2 = button_y1 + button->height;
// Check
return x >= button_x1 && x <= button_x2 && y >= button_y1 && y <= button_y2;
return x >= button_x1 && x < button_x2 && y >= button_y1 && y < button_y2;
}
static void LargeImageButton_render_GuiComponent_drawCenteredString_injection(GuiComponent *component, Font *font, std::string *text, int32_t x, int32_t y, int32_t color) {
// Change Color On Hover