Hack fix for OSX SDL window resize. Possibly SDL 1.2 & OSX bug.

This commit is contained in:
Juha Laukkanen 2014-07-15 19:26:15 +09:00
parent c6324ce647
commit ef106f9b1d

View File

@ -863,6 +863,17 @@ void NativeResized() {
// The UI now supports any offset but not the EmuScreen yet.
uiContext->SetBounds(Bounds(0, 0, dp_xres, dp_yres));
// uiContext->SetBounds(Bounds(dp_xres/2, 0, dp_xres / 2, dp_yres / 2));
// OSX 10.6 and SDL 1.2 bug.
#ifdef __APPLE__
static int dp_xres_old=dp_xres;
if (dp_xres != dp_xres_old) {
UIShader_Init();
uiTexture->Load("ui_atlas.zim");
dp_xres_old = dp_xres;
}
#endif
}
}