diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index 20102f82743f7f5a6f012d0020515db7498e0735..07f22557adf17aee03e39ca669354afd192f1ad3 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -1689,6 +1689,8 @@ bitmap_get_scaled_win_size_nomax(double scale, int *w, int *h) if (scale < 1.0) scale = 1.0; + if (ciolib_r2yptr == NULL || ciolib_y2rptr == NULL) + scale = floor(scale); *w = lround(vstat.scrnwidth * scale); *h = lround(vstat.scrnheight * scale); if (wc) @@ -1717,6 +1719,8 @@ bitmap_double_mult_inside(int maxwidth, int maxheight) // TODO: Allow below 1.0? if (mult < 1.0) mult = 1.0; + if (ciolib_r2yptr == NULL || ciolib_y2rptr == NULL) + mult = floor(mult); return mult; }