diff src/video/fbcon/SDL_fb3dfx.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb f903dc168217
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fb3dfx.c	Mon May 01 06:58:33 2006 +0000
+++ b/src/video/fbcon/SDL_fb3dfx.c	Wed May 17 08:18:28 2006 +0000
@@ -57,6 +57,9 @@
 	int dstX, dstY;
 
 	/* Don't blit to the display surface when switched away */
+	if ( switched_away ) {
+		return -2; /* no hardware access */
+	}
 	if ( dst == this->screen ) {
 		SDL_mutexP(hw_lock);
 	}
@@ -102,6 +105,9 @@
 	Uint32 use_colorkey;
 
 	/* Don't blit to the display surface when switched away */
+	if ( switched_away ) {
+		return -2; /* no hardware access */
+	}
 	if ( dst == this->screen ) {
 		SDL_mutexP(hw_lock);
 	}