Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

The screen/shadow surface flags are no longer needed

  • Loading branch information
slouken committed Jun 26, 2006
1 parent c9c53be commit 992ac88e84376b29e809347629c780f80017b895
Showing with 1 addition and 5 deletions.
  1. +0 −2 include/SDL_compat.h
  2. +1 −3 src/SDL_compat.c
@@ -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
@@ -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 */

0 comments on commit 992ac88

Please sign in to comment.