mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Use _this pointer to reference the video device
(cherry picked from commit 3b9f0dff10
)
This commit is contained in:
@@ -1435,7 +1435,7 @@ void SDL_SetDesktopDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode
|
|||||||
{
|
{
|
||||||
SDL_DisplayMode last_mode;
|
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
|
// This is a temporary mode change, don't save the desktop mode
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user