comparison src/video/SDL_video.c @ 4978:4a7f284a82b2

You can't change the resolution on some devices
author Sam Lantinga <slouken@libsdl.org>
date Wed, 12 Jan 2011 13:46:37 -0800
parents 85969cc5098c
children 889e6fef8fc5
comparison
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