[FIX] some char arguments needed const-ness

This commit is contained in:
2021-05-12 17:50:28 +02:00
parent 562c5ebc32
commit 2b448c3bda

View File

@@ -303,7 +303,7 @@ void Print(int x, int y, const char* text) {
} }
} }
bool Button(int x, int y, char* text) { bool Button(int x, int y, const char* text) {
bool inside = (mouse.x >= x) && (mouse.y >= y) && (mouse.x < x + 55) && (mouse.y < y + 12); bool inside = (mouse.x >= x) && (mouse.y >= y) && (mouse.x < x + 55) && (mouse.y < y + 12);
if (inside) { if (inside) {
FillRect(x, y, 55, 13, 128, 64, 64, 255); FillRect(x, y, 55, 13, 128, 64, 64, 255);