aboutsummaryrefslogtreecommitdiff
path: root/plat.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat.c')
-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);