1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Use libraries v35 (#21771)

This commit is contained in:
Michał Janiszewski
2024-04-12 14:22:00 +02:00
committed by GitHub
parent 271a22d00e
commit f9bd26214b
4 changed files with 17 additions and 10 deletions

View File

@@ -121,6 +121,10 @@ private:
SDL_UnlockSurface(_surface);
}
// On macOS with high DPI ("retina") screens this renders only to a quarter of the screen.
// A workaround is to always scale the surface, but that incurs an additonal copy.
// https://github.com/OpenRCT2/OpenRCT2/issues/21772
#if defined(__APPLE__)
// Copy the surface to the window
if (gConfigGeneral.WindowScale == 1 || gConfigGeneral.WindowScale <= 0)
{
@@ -132,6 +136,7 @@ private:
}
}
else
#endif
{
// first blit to rgba surface to change the pixel format
if (SDL_BlitSurface(_surface, nullptr, _RGBASurface, nullptr))