diff src/video/fbcon/SDL_fbmatrox.c @ 1780:7a36f01acf71

Fixed bug #49 Added support for non-blocking VT switching on the framebuffer console.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 08 May 2006 05:33:02 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbmatrox.c	Mon May 08 05:30:15 2006 +0000
+++ b/src/video/fbcon/SDL_fbmatrox.c	Mon May 08 05:33:02 2006 +0000
@@ -70,6 +70,9 @@
 	Uint32 fillop;
 
 	/* 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);
 	}
@@ -132,6 +135,9 @@
 	}
 
 	/* 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);
 	}