Skip to content

Commit

Permalink
Windows: Fix other window positions/sizes being changed when exiting …
Browse files Browse the repository at this point in the history
…exclusive fullscreen (bug #3315, thanks Simon Hug!)
  • Loading branch information
slime73 committed May 23, 2016
1 parent 0a4085a commit ea2f5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/windows/SDL_windowsmodes.c
Expand Up @@ -416,7 +416,7 @@ WIN_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
LONG status;

if (mode->driverdata == display->desktop_mode.driverdata) {
status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, 0, NULL);
status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, CDS_FULLSCREEN, NULL);
} else {
status = ChangeDisplaySettingsEx(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL);
}
Expand Down

0 comments on commit ea2f5e5

Please sign in to comment.