comparison src/video/SDL_video.c @ 11:7b94b6379341

*** empty log message ***
author Sam Lantinga <slouken@lokigames.com>
date Sat, 28 Apr 2001 18:57:18 +0000
parents 2c4a3a759c66
children c3e9d4a623c1
comparison
equal deleted inserted replaced
10:ee3bb7cd06b5 11:7b94b6379341
1349 SDL_VideoDevice* video = current_video; 1349 SDL_VideoDevice* video = current_video;
1350 SDL_VideoDevice* this = current_video; 1350 SDL_VideoDevice* this = current_video;
1351 1351
1352 if ( video->GL_GetAttribute ) { 1352 if ( video->GL_GetAttribute ) {
1353 retval = this->GL_GetAttribute(this, attr, value); 1353 retval = this->GL_GetAttribute(this, attr, value);
1354 } 1354 } else {
1355 1355 *value = 0;
1356 SDL_SetError("GL_GetAttribute not supported");
1357 }
1356 return retval; 1358 return retval;
1357 } 1359 }
1358 1360
1359 /* Perform a GL buffer swap on the current GL context */ 1361 /* Perform a GL buffer swap on the current GL context */
1360 void SDL_GL_SwapBuffers(void) 1362 void SDL_GL_SwapBuffers(void)
1678 } 1680 }
1679 SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode) 1681 SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode)
1680 { 1682 {
1681 SDL_VideoDevice *video = current_video; 1683 SDL_VideoDevice *video = current_video;
1682 1684
1683 /* If the video isn't initialized yet, we can't do anything */ 1685 /* If the video isn't initialized yet, we can't do anything */
1684 if ( ! video ) { 1686 if ( ! video ) {
1685 return SDL_GRAB_OFF; 1687 return SDL_GRAB_OFF;
1686 } 1688 }
1687 1689
1688 /* Return the current mode on query */ 1690 /* Return the current mode on query */
1689 if ( mode == SDL_GRAB_QUERY ) { 1691 if ( mode == SDL_GRAB_QUERY ) {
1690 mode = video->input_grab; 1692 mode = video->input_grab;
1691 if ( mode >= SDL_GRAB_FULLSCREEN ) { 1693 if ( mode >= SDL_GRAB_FULLSCREEN ) {