aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index b1c00ce..d0e9aa3 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -18,6 +18,14 @@ TexturedButton createTexturedButton(Texture* texture, Rectangle rect, const char
bool updateTexturedButton(TexturedButton* button)
{
// Draw the button.
+ DrawTexturePro(
+ *button->texture,
+ (Rectangle){0.0, 0.0, button->texture->width, button->texture->height},
+ button->rect,
+ Vector2Zero(),
+ 0.0,
+ button->backgroundColor
+ );
return button->isPressed;
}