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

Fix an off-by-less-than-one issue in bitmap_double_mult_inside()

This was sometimes causing an integer scaled mode (ie: 4×) to be
reduced to very slightly less than that (ie: 3.996255×), making the
window one pixel smaller than it was supposed to be due to integer
truncation.

This could result in being unable to increase the window size using
the Alt+Right-Arrow shortcut and could make new windows one full
size smaller than they needed to be (such as C64 windows).

While we're here, fix the SDL and X11 outputs to trust what
bitmap_drv_init_mode() does.  It was fixed when GDI mode was being
written, but the other drivers weren't updated to take advantage of
that.

Should resolve issue 156 reported by DigitalMan
parent 06f98e7f
No related branches found
No related tags found
No related merge requests found
Pipeline #6926 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment