Use _this pointer to reference the video device

This commit is contained in:
Frank Praznik 2025-03-03 18:39:44 -05:00
parent 0ccf272eea
commit 3b9f0dff10
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}