src/video/SDL_yuv.c
changeset 760 cf9dd3aa6756
parent 660 73440ac574a2
child 769 b8d311d90021
--- a/src/video/SDL_yuv.c	Mon Dec 22 01:21:20 2003 +0000
+++ b/src/video/SDL_yuv.c	Wed Dec 31 04:48:38 2003 +0000
@@ -46,7 +46,7 @@
 	const char *yuv_hwaccel;
 	SDL_Overlay *overlay;
 
-	if ( (SDL_VideoSurface->flags & SDL_OPENGL) == SDL_OPENGL ) {
+	if ( (display->flags & SDL_OPENGL) == SDL_OPENGL ) {
 		SDL_SetError("YUV overlays are not supported in OpenGL mode");
 		return NULL;
 	}