Browse Source

Use _this pointer to reference the video device

(cherry picked from commit 3b9f0dff1023dfde49e645e318cf7cfb7b83c7ba)
Frank Praznik 1 month ago
parent
commit
1d6bb62870
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/SDL_video.c

+ 1 - 1
src/video/SDL_video.c

@@ -1435,7 +1435,7 @@ void SDL_SetDesktopDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode
 {
     SDL_DisplayMode last_mode;
 
-    if (display->fullscreen_window || (display->device && display->device->setting_display_mode)) {
+    if (display->fullscreen_window || _this->setting_display_mode) {
         // This is a temporary mode change, don't save the desktop mode
         return;
     }