From 43c2bdc43d069c1914d378291cb80f6284917347 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 28 Apr 2001 18:57:18 +0000 Subject: [PATCH] *** empty log message *** --- src/video/SDL_video.c | 12 +++++++----- src/video/dummy/.cvsignore | 6 ++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 src/video/dummy/.cvsignore diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 777e64dbf..65f6197ec 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1351,8 +1351,10 @@ int SDL_GL_GetAttribute(SDL_GLattr attr, int* value) 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_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode) { 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 --git a/src/video/dummy/.cvsignore b/src/video/dummy/.cvsignore new file mode 100644 index 000000000..899d53557 --- /dev/null +++ b/src/video/dummy/.cvsignore @@ -0,0 +1,6 @@ +Makefile.in +Makefile +.libs +*.o +*.lo +*.la