From a38d0d4c68eaf8404c74f0ff35c21d2caa73b9b2 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sat, 18 May 2013 10:48:25 +0930 Subject: [PATCH] vid: get rid of the win32 window_rect in vid_sdl Was for compatibility with vid_sdl + in_win, but not worth supporting that configuration I think. Signed-off-by: Kevin Shanahan --- common/vid_sdl.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/common/vid_sdl.c b/common/vid_sdl.c index 82b72b3..0c2d6fd 100644 --- a/common/vid_sdl.c +++ b/common/vid_sdl.c @@ -78,7 +78,6 @@ viddef_t vid; /* global video state */ #ifdef _WIN32 static HICON hIcon; -RECT window_rect; #endif void VID_Shutdown(void) @@ -277,26 +276,6 @@ VID_IsFullScreen() return !!vid_modenum; } -/* -================ -VID_UpdateWindowStatus -================ -*/ -static void -VID_UpdateWindowStatus(void) -{ -#ifdef _WIN32 - window_rect.left = window_x; - window_rect.top = window_y; - window_rect.right = window_x + window_width; - window_rect.bottom = window_y + window_height; - window_center_x = (window_rect.left + window_rect.right) / 2; - window_center_y = (window_rect.top + window_rect.bottom) / 2; - - IN_UpdateClipCursor(); -#endif -} - qboolean VID_SetMode(const qvidmode_t *mode, const byte *palette) { @@ -366,7 +345,6 @@ VID_SetMode(const qvidmode_t *mode, const byte *palette) window_width = vid.width; window_height = vid.height; - VID_UpdateWindowStatus(); vid_modenum = mode - modelist; Cvar_SetValue("vid_mode", vid_modenum);