--- a/hedgewars/uMisc.pas Thu Dec 24 13:38:20 2009 +0000
+++ b/hedgewars/uMisc.pas Sun Jan 03 15:40:41 2010 +0000
@@ -34,7 +34,6 @@
isInLag : boolean = false;
isPaused : boolean = false;
isSoundEnabled : boolean = true;
- isSoundHardware : boolean = false;
isMusicEnabled : boolean = false;
isSEBackup : boolean = true;
isInMultiShoot : boolean = false;
@@ -60,6 +59,7 @@
cScreenHeight : LongInt = 768;
cInitWidth : LongInt = 1024;
cInitHeight : LongInt = 768;
+ cVSyncInUse : boolean = true;
cBits : LongInt = 32;
cBitsStr : string[2] = '32';
cTagsMaskIndex : byte = Low(cTagsMasks);
@@ -111,7 +111,6 @@
cBombsSpeed : hwFloat = (isNegative: false; QWordValue: 429496729);
{$WARNINGS ON}
-var
cSendCursorPosTime : LongWord = 50;
ShowCrosshair : boolean;
CursorMovementX : Integer = 0;
@@ -192,11 +191,8 @@
var x, y: LongInt;
begin
if (dx = 0) and (dy = 0) then exit;
-{$IFDEF SDL13}
-SDL_GetMouseState(0, @x, @y);
-{$ELSE}
+
SDL_GetMouseState(@x, @y);
-{$ENDIF}
Inc(x, dx);
Inc(y, dy);
SDL_WarpMouse(x, y);