src/video/windows/SDL_windowsmodes.c
changeset 10179 7cbfd97f1430
parent 10174 284022a7f51e
equal deleted inserted replaced
10177:faa36f2de933 10179:7cbfd97f1430
   414     SDL_DisplayData *displaydata = (SDL_DisplayData *) display->driverdata;
   414     SDL_DisplayData *displaydata = (SDL_DisplayData *) display->driverdata;
   415     SDL_DisplayModeData *data = (SDL_DisplayModeData *) mode->driverdata;
   415     SDL_DisplayModeData *data = (SDL_DisplayModeData *) mode->driverdata;
   416     LONG status;
   416     LONG status;
   417 
   417 
   418     if (mode->driverdata == display->desktop_mode.driverdata) {
   418     if (mode->driverdata == display->desktop_mode.driverdata) {
   419         status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, 0, NULL);
   419         status = ChangeDisplaySettingsEx(displaydata->DeviceName, NULL, NULL, CDS_FULLSCREEN, NULL);
   420     } else {
   420     } else {
   421         status = ChangeDisplaySettingsEx(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL);
   421         status = ChangeDisplaySettingsEx(displaydata->DeviceName, &data->DeviceMode, NULL, CDS_FULLSCREEN, NULL);
   422     }
   422     }
   423     if (status != DISP_CHANGE_SUCCESSFUL) {
   423     if (status != DISP_CHANGE_SUCCESSFUL) {
   424         const char *reason = "Unknown reason";
   424         const char *reason = "Unknown reason";