Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
The screen/shadow surface flags are no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 26, 2006
1 parent c9c53be commit 992ac88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions include/SDL_compat.h
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/SDL_compat.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 992ac88

Please sign in to comment.