comparison src/video/SDL_video.c @ 1190:173c063d4f55

OS/2 port! This was mostly, if not entirely, written by "Doodle" and "Caetano": doodle@scenergy.dfmk.hu daniel@caetano.eng.br --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 23 Nov 2005 07:29:56 +0000
parents 19d8949b4584
children 8609567ea02f
comparison
equal deleted inserted replaced
1189:c96b326b90ba 1190:173c063d4f55
123 #ifdef ENABLE_DC 123 #ifdef ENABLE_DC
124 &DC_bootstrap, 124 &DC_bootstrap,
125 #endif 125 #endif
126 #ifdef ENABLE_RISCOS 126 #ifdef ENABLE_RISCOS
127 &RISCOS_bootstrap, 127 &RISCOS_bootstrap,
128 #endif
129 #ifdef __OS2__
130 &OS2FSLib_bootstrap,
128 #endif 131 #endif
129 #ifdef ENABLE_DUMMYVIDEO 132 #ifdef ENABLE_DUMMYVIDEO
130 &DUMMY_bootstrap, 133 &DUMMY_bootstrap,
131 #endif 134 #endif
132 NULL 135 NULL
662 prev_mode = SDL_VideoSurface; 665 prev_mode = SDL_VideoSurface;
663 SDL_LockCursor(); 666 SDL_LockCursor();
664 SDL_VideoSurface = NULL; /* In case it's freed by driver */ 667 SDL_VideoSurface = NULL; /* In case it's freed by driver */
665 mode = video->SetVideoMode(this, prev_mode,video_w,video_h,video_bpp,flags); 668 mode = video->SetVideoMode(this, prev_mode,video_w,video_h,video_bpp,flags);
666 if ( mode ) { /* Prevent resize events from mode change */ 669 if ( mode ) { /* Prevent resize events from mode change */
670 /* But not on OS/2 */
671 #ifndef __OS2__
667 SDL_PrivateResize(mode->w, mode->h); 672 SDL_PrivateResize(mode->w, mode->h);
673 #endif
668 674
669 /* Sam - If we asked for OpenGL mode, and didn't get it, fail */ 675 /* Sam - If we asked for OpenGL mode, and didn't get it, fail */
670 if ( is_opengl && !(mode->flags & SDL_OPENGL) ) { 676 if ( is_opengl && !(mode->flags & SDL_OPENGL) ) {
671 mode = NULL; 677 mode = NULL;
672 SDL_SetError("OpenGL not available"); 678 SDL_SetError("OpenGL not available");