feature: quit button, start button changes to continue
This commit is contained in:
+2
-2
@@ -7,10 +7,10 @@
|
||||
typedef struct
|
||||
{
|
||||
Rectangle rec;
|
||||
const char *text;
|
||||
char *text;
|
||||
} Button;
|
||||
|
||||
void initButton(Button *b, const char *text, int buttonWidth, int buttonHeight, int buttonPosX, int buttonPosY)
|
||||
void initButton(Button *b, char *text, int buttonWidth, int buttonHeight, int buttonPosX, int buttonPosY)
|
||||
{
|
||||
b->rec = (Rectangle){buttonPosX - buttonWidth / 2, buttonPosY - buttonHeight / 2, buttonWidth, buttonHeight};
|
||||
b->text = text;
|
||||
|
||||
Reference in New Issue
Block a user