src/video/SDL_video.c
changeset 11 7b94b6379341
parent 7 2c4a3a759c66
child 14 c3e9d4a623c1
     1.1 --- a/src/video/SDL_video.c	Sat Apr 28 18:56:58 2001 +0000
     1.2 +++ b/src/video/SDL_video.c	Sat Apr 28 18:57:18 2001 +0000
     1.3 @@ -1351,8 +1351,10 @@
     1.4  
     1.5  	if ( video->GL_GetAttribute ) {
     1.6  		retval = this->GL_GetAttribute(this, attr, value);
     1.7 +	} else {
     1.8 +		*value = 0;
     1.9 +		SDL_SetError("GL_GetAttribute not supported");
    1.10  	}
    1.11 -
    1.12  	return retval;
    1.13  }
    1.14  
    1.15 @@ -1680,10 +1682,10 @@
    1.16  {
    1.17  	SDL_VideoDevice *video = current_video;
    1.18  
    1.19 -    /* If the video isn't initialized yet, we can't do anything */
    1.20 -    if ( ! video ) {
    1.21 -        return SDL_GRAB_OFF;
    1.22 -    }
    1.23 +	/* If the video isn't initialized yet, we can't do anything */
    1.24 +	if ( ! video ) {
    1.25 +		return SDL_GRAB_OFF;
    1.26 +	}
    1.27  
    1.28  	/* Return the current mode on query */
    1.29  	if ( mode == SDL_GRAB_QUERY ) {