summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2011-08-02 21:03:14 +0000
committerTim Angus <tim@ngus.net>2013-01-10 23:23:32 +0000
commitfdfff533a049b69f65b4492b7accbc8d7c3d8307 (patch)
tree9da79c6e92c391ed36d5ddfc26214a42b49a393a /src
parent851e05f1d57e95d5bb89a8f23d5c98802202076d (diff)
Change x86_64 to x64 for mingw.
Diffstat (limited to 'src')
-rw-r--r--src/sdl/sdl_input.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c
index 2cc3dcf4..4268a976 100644
--- a/src/sdl/sdl_input.c
+++ b/src/sdl/sdl_input.c
@@ -418,13 +418,13 @@ static void IN_GetUIMousePosition( int *x, int *y )
*x = pos & 0xFFFF;
*y = ( pos >> 16 ) & 0xFFFF;
- *x = glConfig.vidWidth * *x / 640;
- *y = glConfig.vidHeight * *y / 480;
+ *x = Cvar_VariableIntegerValue( "r_width" ) * *x / 640;
+ *y = Cvar_VariableIntegerValue( "r_height" ) * *y / 480;
}
else
{
- *x = glConfig.vidWidth / 2;
- *y = glConfig.vidHeight / 2;
+ *x = Cvar_VariableIntegerValue( "r_width" ) / 2;
+ *y = Cvar_VariableIntegerValue( "r_height" ) / 2;
}
}
@@ -437,8 +437,8 @@ static void IN_SetUIMousePosition( int x, int y )
{
if( uivm )
{
- x = x * 640 / glConfig.vidWidth;
- y = y * 480 / glConfig.vidHeight;
+ x = x * 640 / Cvar_VariableIntegerValue( "r_width" );
+ y = y * 480 / Cvar_VariableIntegerValue( "r_height" );
VM_Call( uivm, UI_SET_MOUSE_POSITION, x, y );
}
}
@@ -1036,7 +1036,7 @@ void IN_Frame( void )
// Loading in windowed mode
IN_DeactivateMouse( );
}
- else if( !r_fullscreen->integer && cursorShowing )
+ else if( !Cvar_VariableIntegerValue("r_fullscreen") && cursorShowing )
{
// Use WM cursor when not fullscreen
IN_DeactivateMouse( );