src/video/SDL_video.c
changeset 4978 4a7f284a82b2
parent 4977 85969cc5098c
child 4984 889e6fef8fc5
equal deleted inserted replaced
4977:85969cc5098c 4978:4a7f284a82b2
   692     if (SDL_memcmp(&display_mode, &current_mode, sizeof(display_mode)) == 0) {
   692     if (SDL_memcmp(&display_mode, &current_mode, sizeof(display_mode)) == 0) {
   693         return 0;
   693         return 0;
   694     }
   694     }
   695 
   695 
   696     /* Actually change the display mode */
   696     /* Actually change the display mode */
       
   697     if (!_this->SetDisplayMode) {
       
   698         SDL_SetError("Video driver doesn't support changing display mode");
       
   699         return -1;
       
   700     }
   697     if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
   701     if (_this->SetDisplayMode(_this, display, &display_mode) < 0) {
   698         return -1;
   702         return -1;
   699     }
   703     }
   700     display->current_mode = display_mode;
   704     display->current_mode = display_mode;
   701 
   705