mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-12 12:20:17 +00:00
Hack fix for OSX SDL window resize. Possibly SDL 1.2 & OSX bug.
This commit is contained in:
parent
c6324ce647
commit
ef106f9b1d
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user