aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.c b/src/ui.c
index f07dc96..5fab8a6 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1,5 +1,6 @@
#include "ui.h"
#include "game.h"
+#include "util.h"
TexturedButton createTexturedButton(Texture* texture, Rectangle rect, const char* message,
Color backgroundColor, Color foregroundColor)
@@ -46,7 +47,7 @@ bool updateTexturedButton(TexturedButton* button)
button->isPressed = false;
// Outline and detect click stuff.
- if (CheckCollisionPointRec(GetMousePosition(), button->rect))
+ if (CheckCollisionPointRec(getScaledMousePosition(), button->rect))
{
// Draw outline thingy.
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))