Partly clean up SDL resize code, should help #11974

This commit is contained in:
Henrik Rydgård committed 2020-06-24 01:06:01 +02:00
1 parent af7995c554
commit f9cef5b6b2
6 files changed
+15 -16

No files matched your search

+5 -7
View File
@@ -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");