comparison src/video/SDL_video.c @ 4746:0c39b36dd104

Merge
author dewyatt
date Tue, 06 Jul 2010 02:07:42 -0400
parents 791b3256fb22
children dbbfdb9ea716 22aa6a631d34
comparison
equal deleted inserted replaced
4745:0aaa54fbd2bc 4746:0c39b36dd104
302 } 302 }
303 return _this->name; 303 return _this->name;
304 } 304 }
305 305
306 SDL_VideoDevice * 306 SDL_VideoDevice *
307 SDL_GetVideoDevice() 307 SDL_GetVideoDevice(void)
308 { 308 {
309 return _this; 309 return _this;
310 } 310 }
311 311
312 int 312 int
713 SDL_BITSPERPIXEL(display_mode.format)); 713 SDL_BITSPERPIXEL(display_mode.format));
714 } 714 }
715 } 715 }
716 716
717 return 0; 717 return 0;
718 }
719
720 int
721 SDL_SetDisplayMode(const SDL_DisplayMode * mode)
722 {
723 if (!_this) {
724 SDL_UninitializedVideo();
725 return -1;
726 }
727 return SDL_SetDisplayModeForDisplay(SDL_CurrentDisplay, mode);
728 } 718 }
729 719
730 int 720 int
731 SDL_SetWindowDisplayMode(SDL_Window * window, const SDL_DisplayMode * mode) 721 SDL_SetWindowDisplayMode(SDL_Window * window, const SDL_DisplayMode * mode)
732 { 722 {