mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 03:26:04 -05:00
Whoops, work in progress, didn't mean to commit.
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
|
||||
|
||||
static SDL_Window *SDL_VideoWindow = NULL;
|
||||
static SDL_Surface *SDL_WindowSurface = NULL;
|
||||
static SDL_Surface *SDL_VideoSurface = NULL;
|
||||
static SDL_Surface *SDL_ShadowSurface = NULL;
|
||||
static SDL_Surface *SDL_PublicSurface = NULL;
|
||||
@@ -411,9 +410,9 @@ SDL_ResizeVideoMode(int width, int height, int bpp, Uint32 flags)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Get the surface for the window */
|
||||
SDL_WindowSurface = SDL_GetWindowSurface(SDL_VideoWindow);
|
||||
if (!SDL_WindowSurface) {
|
||||
/* Destroy the screen texture and recreate it */
|
||||
SDL_VideoSurface = SDL_GetWindowSurface(SDL_VideoWindow);
|
||||
if (!SDL_VideoSurface) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -550,8 +549,8 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
|
||||
}
|
||||
|
||||
/* Create the screen surface */
|
||||
SDL_WindowSurface = SDL_GetWindowSurface(SDL_VideoWindow);
|
||||
if (!SDL_WindowSurface) {
|
||||
SDL_VideoSurface = SDL_GetWindowSurface(SDL_VideoWindow);
|
||||
if (!SDL_VideoSurface) {
|
||||
return NULL;
|
||||
}
|
||||
SDL_VideoSurface->flags |= surface_flags;
|
||||
|
||||
Reference in New Issue
Block a user