mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Partly clean up SDL resize code, should help #11974
This commit is contained in:
1 parent
af7995c554
commit
f9cef5b6b2
6 files changed
+15
-16
No files matched your search
+5
-7
@@ -1087,13 +1087,11 @@ void NativeRender(GraphicsContext *graphicsContext) {
|
||||
graphicsContext->Resize();
|
||||
screenManager->resized();
|
||||
|
||||
// TODO: Move this to new GraphicsContext objects for each backend.
|
||||
#ifndef _WIN32
|
||||
if (GetGPUBackend() == GPUBackend::OPENGL) {
|
||||
PSP_CoreParameter().pixelWidth = pixel_xres;
|
||||
PSP_CoreParameter().pixelHeight = pixel_yres;
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
}
|
||||
// TODO: Move this to the GraphicsContext objects for each backend.
|
||||
#if !defined(_WIN32) && !defined(ANDROID)
|
||||
PSP_CoreParameter().pixelWidth = pixel_xres;
|
||||
PSP_CoreParameter().pixelHeight = pixel_yres;
|
||||
NativeMessageReceived("gpu_resized", "");
|
||||
#endif
|
||||
} else {
|
||||
// ILOG("Polling graphics context");
|
||||
|
||||
Reference in new issue
Block a user