From 992ac88e84376b29e809347629c780f80017b895 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 26 Jun 2006 20:32:54 +0000 Subject: [PATCH] The screen/shadow surface flags are no longer needed --- include/SDL_compat.h | 2 -- src/SDL_compat.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/SDL_compat.h b/include/SDL_compat.h index 4ab256f16..c3288017d 100644 --- a/include/SDL_compat.h +++ b/include/SDL_compat.h @@ -46,8 +46,6 @@ extern "C" { #define SDL_OPENGL 0x04000000 #define SDL_ASYNCBLIT 0x08000000 /* Not used */ #define SDL_HWACCEL 0x08000000 /* Not used */ -#define SDL_SCREEN_SURFACE 0x10000000 /* Surface is a window screen surface */ -#define SDL_SHADOW_SURFACE 0x20000000 /* Surface is a window shadow surface */ #define SDL_APPMOUSEFOCUS 0x01 #define SDL_APPINPUTFOCUS 0x02 diff --git a/src/SDL_compat.c b/src/SDL_compat.c index f3c375dc3..8ebdcd257 100644 --- a/src/SDL_compat.c +++ b/src/SDL_compat.c @@ -306,7 +306,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) } window_flags = SDL_GetWindowFlags(SDL_VideoWindow); - surface_flags = SDL_SCREEN_SURFACE; + surface_flags = 0; if (window_flags & SDL_WINDOW_FULLSCREEN) { surface_flags |= SDL_FULLSCREEN; } @@ -448,8 +448,6 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) if (!SDL_ShadowSurface) { return NULL; } - surface_flags &= ~SDL_SCREEN_SURFACE; - surface_flags |= SDL_SHADOW_SURFACE; SDL_ShadowSurface->flags |= surface_flags; /* 8-bit SDL_ShadowSurface surfaces report that they have exclusive palette */