src/video/SDL_yuv.c
changeset 81 1a2723474f12
parent 0 74212992fb08
child 252 e8157fcb3114
--- a/src/video/SDL_yuv.c	Sat Jun 23 22:02:27 2001 +0000
+++ b/src/video/SDL_yuv.c	Mon Jun 25 22:16:44 2001 +0000
@@ -48,13 +48,13 @@
 	overlay = NULL;
 
 	/* Display directly on video surface, if possible */
-#if 0
-	if ( (display == SDL_PublicSurface) &&
-	     ((SDL_VideoSurface->format->BytesPerPixel == 2) ||
-	      (SDL_VideoSurface->format->BytesPerPixel == 4)) ) {
-		display = SDL_VideoSurface;
+	if ( getenv("SDL_VIDEO_YUV_DIRECT") ) {
+		if ( (display == SDL_PublicSurface) &&
+		     ((SDL_VideoSurface->format->BytesPerPixel == 2) ||
+		      (SDL_VideoSurface->format->BytesPerPixel == 4)) ) {
+			display = SDL_VideoSurface;
+		}
 	}
-#endif
         yuv_hwaccel = getenv("SDL_VIDEO_YUV_HWACCEL");
 	if ( ((display == SDL_VideoSurface) && video->CreateYUVOverlay) &&
 	     (!yuv_hwaccel || (atoi(yuv_hwaccel) > 0)) ) {