Closed grantramsay closed 5 years ago
Changed fix to not use high-DPI, as I was seeing black lines between each tile when enabled and non-maximised window. I might have a bit more of a look into why it doesn't work.. e.g. enabled: disabled:
High DPI scaling is a bit of an issue in general, especially making it work properly across multiple platforms. We have a high DPI mac in work, and I have 4k windows/linux at home. Before 0.4 is released, I'll have a look and try get something together that works consistently on all three (probably from this PR, or a slightly modified version of it). For now (0.4) I'm happy to just have non-corrupted rendering, but eventually I'd like to add decent scaling, where we can scale the gui and game independently.
Ok sounds good. I also applied the fix I mentioned here for Windows in full screen mode. Feel free to update/edit this PR when doing your portability testing
This PR fixes macOS window scaling for me, without it I see this:
Ok, finally tested on everything, and seems to work fine. Thanks!
Fullscreen freeablo worked fine, but launcher and windowed freeablo were way off. Issue seems to be that
SDL_GL_GetDrawableSize
always returns the high-DPI count. Either usingSDL_GetWindowSize
instead or enabling high-DPI (SDL_WINDOW_ALLOW_HIGHDPI
) fixes the issue. e.g. before: after: