mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix window resize/fullscreen ingame on Mac and other SDL builds
This commit is contained in:
parent
c41b981333
commit
437d7b80e3
2 changed files with 8 additions and 2 deletions
|
@ -738,6 +738,12 @@ void NativeRender() {
|
|||
if (g_Config.iGPUBackend == GPU_BACKEND_DIRECT3D9) {
|
||||
#ifdef _WIN32
|
||||
D3D9_Resize(0);
|
||||
#endif
|
||||
} else if (g_Config.iGPUBackend == GPU_BACKEND_OPENGL) {
|
||||
#ifndef _WIN32
|
||||
PSP_CoreParameter().pixelWidth = pixel_xres;
|
||||
PSP_CoreParameter().pixelHeight = pixel_yres;
|
||||
NativeMessageReceived("gpu resized", "");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -689,9 +689,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
// Hide/Show cursor correctly toggling fullscreen
|
||||
if (lastUIState == UISTATE_INGAME && fullscreen && !g_Config.bShowTouchControls) {
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
} else if (lastUIState != UISTATE_INGAME || !fullscreen) {
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue