Skip to content
Snippets Groups Projects
Commit 69a89847 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't allow ciolib_initial_scaling to be less than 1.0 even if you

do math to get there.
parent b9c51d8b
No related branches found
No related tags found
No related merge requests found
Pipeline #5816 passed
......@@ -365,7 +365,7 @@ static int sdl_init_mode(int mode, bool init)
h *= ciolib_initial_scaling;
ciolib_initial_scaling = bitmap_double_mult_inside(w, h);
}
else {
if (ciolib_initial_scaling < 1.0) {
ciolib_initial_scaling = 1.0;
}
}
......
......@@ -840,7 +840,7 @@ gdi_thread(void *arg)
vstat.winheight *= ciolib_initial_scaling;
ciolib_initial_scaling = bitmap_double_mult_inside(vstat.winwidth, vstat.winheight);
}
else {
if (ciolib_initial_scaling < 1.0) {
ciolib_initial_scaling = 1.0;
}
}
......
......@@ -1243,7 +1243,7 @@ static int video_init()
if (x11_get_maxsize(&w, &h)) {
ciolib_initial_scaling = bitmap_double_mult_inside(w, h);
}
else {
if (ciolib_initial_scaling < 1.0) {
ciolib_initial_scaling = 1.0;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment