aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-09-27 16:23:13 +1000
committerquou <quou@disroot.org>2024-09-27 16:23:13 +1000
commit9ca0a79e9cc784e14c3d8111ccb9ea1a22225472 (patch)
treef914c30100295942737f4cb3705989e4ee8f3c28
parentd412112fe1fcbef6d459f144516cd51b66f90612 (diff)
fix scaling
-rw-r--r--plat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plat.c b/plat.c
index e178137..7c5c9f8 100644
--- a/plat.c
+++ b/plat.c
@@ -421,6 +421,7 @@ void app_end(App* a) {
m2 = viewport_h;
}
while (m2 * s < m1) s++; /* lol */
+ s = maxi(1, s - 1);
app_rencpy(a, i, 0, 0, s);
i->end = get_timer();
a->fps = 1000000000 / (i->end - i->begin);