Added call to gl_clearwin() for filter modes [zinx]
This commit is contained in:
@@ -34,6 +34,8 @@ extern Uint8 GUIOn2;
|
|||||||
|
|
||||||
extern unsigned int vidbuffer;
|
extern unsigned int vidbuffer;
|
||||||
|
|
||||||
|
void gl_clearwin();
|
||||||
|
|
||||||
int gl_start(int width, int height, int req_depth, int FullScreen)
|
int gl_start(int width, int height, int req_depth, int FullScreen)
|
||||||
{
|
{
|
||||||
Uint32 flags =
|
Uint32 flags =
|
||||||
@@ -55,6 +57,7 @@ int gl_start(int width, int height, int req_depth, int FullScreen)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gl_clearwin();
|
||||||
SurfaceLocking = SDL_MUSTLOCK(surface);
|
SurfaceLocking = SDL_MUSTLOCK(surface);
|
||||||
SDL_WarpMouse(SurfaceX / 4, SurfaceY / 4);
|
SDL_WarpMouse(SurfaceX / 4, SurfaceY / 4);
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,10 @@ void initwinvideo();
|
|||||||
void ProcessKeyBuf(int scancode);
|
void ProcessKeyBuf(int scancode);
|
||||||
void LinuxExit(void);
|
void LinuxExit(void);
|
||||||
|
|
||||||
|
#ifdef __OPENGL__
|
||||||
|
extern void gl_clearwin();
|
||||||
|
#endif
|
||||||
|
|
||||||
int Main_Proc(void)
|
int Main_Proc(void)
|
||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
@@ -254,6 +258,7 @@ int Main_Proc(void)
|
|||||||
WindowHeight, BitDepth, surface->flags);
|
WindowHeight, BitDepth, surface->flags);
|
||||||
glViewport(0,0, WindowWidth, WindowHeight);
|
glViewport(0,0, WindowWidth, WindowHeight);
|
||||||
glFlush();
|
glFlush();
|
||||||
|
gl_clearwin();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user