The screen/shadow surface flags are no longer needed SDL-1.3
authorSam Lantinga <slouken@libsdl.org>
Mon, 26 Jun 2006 20:32:54 +0000
branchSDL-1.3
changeset 17166ab5e712e642
parent 1715 364df7679e6b
child 1717 e3637569ab86
The screen/shadow surface flags are no longer needed
include/SDL_compat.h
src/SDL_compat.c
     1.1 --- a/include/SDL_compat.h	Mon Jun 26 16:21:06 2006 +0000
     1.2 +++ b/include/SDL_compat.h	Mon Jun 26 20:32:54 2006 +0000
     1.3 @@ -46,8 +46,6 @@
     1.4  #define SDL_OPENGL          0x04000000
     1.5  #define SDL_ASYNCBLIT       0x08000000  /* Not used */
     1.6  #define SDL_HWACCEL         0x08000000  /* Not used */
     1.7 -#define SDL_SCREEN_SURFACE  0x10000000  /* Surface is a window screen surface */
     1.8 -#define SDL_SHADOW_SURFACE  0x20000000  /* Surface is a window shadow surface */
     1.9  
    1.10  #define SDL_APPMOUSEFOCUS	0x01
    1.11  #define SDL_APPINPUTFOCUS	0x02
     2.1 --- a/src/SDL_compat.c	Mon Jun 26 16:21:06 2006 +0000
     2.2 +++ b/src/SDL_compat.c	Mon Jun 26 20:32:54 2006 +0000
     2.3 @@ -306,7 +306,7 @@
     2.4      }
     2.5  
     2.6      window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
     2.7 -    surface_flags = SDL_SCREEN_SURFACE;
     2.8 +    surface_flags = 0;
     2.9      if (window_flags & SDL_WINDOW_FULLSCREEN) {
    2.10          surface_flags |= SDL_FULLSCREEN;
    2.11      }
    2.12 @@ -448,8 +448,6 @@
    2.13          if (!SDL_ShadowSurface) {
    2.14              return NULL;
    2.15          }
    2.16 -        surface_flags &= ~SDL_SCREEN_SURFACE;
    2.17 -        surface_flags |= SDL_SHADOW_SURFACE;
    2.18          SDL_ShadowSurface->flags |= surface_flags;
    2.19  
    2.20          /* 8-bit SDL_ShadowSurface surfaces report that they have exclusive palette */