# HG changeset patch # User Sam Lantinga # Date 1151353974 0 # Node ID 6ab5e712e642d06835a9b508e8924679b8ad1cb3 # Parent 364df7679e6bd3787e7d2773933fd431e339ce01 The screen/shadow surface flags are no longer needed diff -r 364df7679e6b -r 6ab5e712e642 include/SDL_compat.h --- a/include/SDL_compat.h Mon Jun 26 16:21:06 2006 +0000 +++ b/include/SDL_compat.h Mon Jun 26 20:32:54 2006 +0000 @@ -46,8 +46,6 @@ #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 -r 364df7679e6b -r 6ab5e712e642 src/SDL_compat.c --- a/src/SDL_compat.c Mon Jun 26 16:21:06 2006 +0000 +++ b/src/SDL_compat.c Mon Jun 26 20:32:54 2006 +0000 @@ -306,7 +306,7 @@ } 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 @@ 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 */