# HG changeset patch # User Sam Lantinga # Date 988484238 0 # Node ID 7b94b637934157876327fe1de6a6f9bfdf4bef0a # Parent ee3bb7cd06b5ce9f635bf65edb12f7d598077355 *** empty log message *** diff -r ee3bb7cd06b5 -r 7b94b6379341 src/video/SDL_video.c --- a/src/video/SDL_video.c Sat Apr 28 18:56:58 2001 +0000 +++ b/src/video/SDL_video.c Sat Apr 28 18:57:18 2001 +0000 @@ -1351,8 +1351,10 @@ if ( video->GL_GetAttribute ) { retval = this->GL_GetAttribute(this, attr, value); + } else { + *value = 0; + SDL_SetError("GL_GetAttribute not supported"); } - return retval; } @@ -1680,10 +1682,10 @@ { SDL_VideoDevice *video = current_video; - /* If the video isn't initialized yet, we can't do anything */ - if ( ! video ) { - return SDL_GRAB_OFF; - } + /* If the video isn't initialized yet, we can't do anything */ + if ( ! video ) { + return SDL_GRAB_OFF; + } /* Return the current mode on query */ if ( mode == SDL_GRAB_QUERY ) { diff -r ee3bb7cd06b5 -r 7b94b6379341 src/video/dummy/.cvsignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/video/dummy/.cvsignore Sat Apr 28 18:57:18 2001 +0000 @@ -0,0 +1,6 @@ +Makefile.in +Makefile +.libs +*.o +*.lo +*.la