Zzz...
This commit is contained in:
1 parent
6a3987c8f7
commit
4a1523da57
2 files changed
-14
No files matched your search
@@ -140,11 +140,9 @@ UINT32 I_GetRefreshRate(void);
|
||||
boolean I_UseNativeKeyboard(void);
|
||||
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
void RefreshSDLSurface(void);
|
||||
void I_DownSample(void);
|
||||
extern boolean downsample;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -216,14 +216,12 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen);
|
||||
static void Impl_SetWindowIcon(void);
|
||||
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
boolean downsample = false;
|
||||
void RefreshSDLSurface(void)
|
||||
{
|
||||
OglSdlSurface(vid.width, vid.height);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static void SDLSetMode(INT32 width, INT32 height, SDL_bool fullscreen)
|
||||
{
|
||||
@@ -747,7 +745,6 @@ static INT32 SDLJoyAxis(const Sint16 axis, evtype_t which)
|
||||
}
|
||||
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
void I_DownSample(void)
|
||||
{
|
||||
if (!cv_grframebuffer.value)
|
||||
@@ -773,7 +770,6 @@ void I_DownSample(void)
|
||||
downsample = false; // couldnt get display info so turn the thing off
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||
{
|
||||
@@ -781,9 +777,7 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||
static SDL_bool mousefocus = SDL_TRUE;
|
||||
static SDL_bool kbfocus = SDL_TRUE;
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
static SDL_bool windowmoved = SDL_FALSE;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
switch (evt.event)
|
||||
@@ -805,11 +799,9 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||
case SDL_WINDOWEVENT_MAXIMIZED:
|
||||
break;
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
case SDL_WINDOWEVENT_MOVED:
|
||||
windowmoved = SDL_TRUE;
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -851,13 +843,11 @@ static void Impl_HandleWindowEvent(SDL_WindowEvent evt)
|
||||
}
|
||||
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
if (windowmoved)
|
||||
{
|
||||
I_DownSample();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
static void Impl_HandleKeyboardEvent(SDL_KeyboardEvent evt, Uint32 type)
|
||||
@@ -1937,9 +1927,7 @@ INT32 VID_SetMode(INT32 modeNum)
|
||||
//Impl_SetWindowName("SRB2Kart "VERSIONSTRING);
|
||||
|
||||
#ifdef HWRENDER
|
||||
#ifdef GL_VERSION_3_0
|
||||
I_DownSample();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
SDLSetMode(vid.width, vid.height, USE_FULLSCREEN);
|
||||
|
||||
Reference in new issue
Block a user