[FIX] some char arguments needed const-ness
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user