using the correct min/max because Mouse broke
@@ -769,7 +769,7 @@ ENGINE_getMouseX(ENGINE* engine) {
int winY;
SDL_GetMouseState(&mouseX, &mouseY);
SDL_GetWindowSize(engine->window, &winX, &winY);
- return mouseX * max(((float)engine->width / (float)winX), (float)engine->height / (float)winY) - viewport.x;
+ return mouseX * fmax(((float)engine->width / (float)winX), (float)engine->height / (float)winY) - viewport.x;
}
internal float
@@ -782,7 +782,7 @@ ENGINE_getMouseY(ENGINE* engine) {
int winY;
SDL_GetMouseState(&mouseX, &mouseY);
SDL_GetWindowSize(engine->window, &winX, &winY);
- return mouseY * max(((float)engine->width / (float)winX), (float)engine->height / (float)winY) - viewport.y;
+ return mouseY * fmax(((float)engine->width / (float)winX), (float)engine->height / (float)winY) - viewport.y;
}
internal bool
