The SDL library handles HiDPI differently depending on the system. On some systems, such as macOS, the drawable area and the SDL window have a different size (the window is on low-dpi size) while on other systems such as Windows they have the same size. Because of that we sometimes need to scale sizes or coordinates between the two, and sometimes we don't. This was handled in two different ways. This commit change the code to handle it consistently everywhere, and also should be more future proof should SDL change the way it handles HiDPI in the future (as we now query the size from SDL itself to find out if the scaling is needed). |
||
---|---|---|
.. | ||
gph | ||
maemosdl | ||
null | ||
opengl | ||
openglsdl | ||
openpandora | ||
sdl | ||
surfacesdl | ||
default-palette.h | ||
graphics.h | ||
windowed.h |