Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
The screen/shadow surface flags are no longer needed
- Loading branch information
Showing
with
1 addition
and
5 deletions.
-
+0
−2
include/SDL_compat.h
-
+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 */ |
|
|