Fix to enable compiling for something else than arm, the compiler for x64_86 didn't recognize Int32 etc.. hedgeroid
authorXeli
Wed, 14 Sep 2011 18:43:16 +0200
branchhedgeroid
changeset 5826 2a2cce052b4d
parent 5824 2e5835130d9a
child 5828 667fb58d7f18
Fix to enable compiling for something else than arm, the compiler for x64_86 didn't recognize Int32 etc..
hedgewars/SDLh.pas
--- a/hedgewars/SDLh.pas	Fri Sep 09 05:15:45 2011 +0200
+++ b/hedgewars/SDLh.pas	Wed Sep 14 18:43:16 2011 +0200
@@ -572,18 +572,18 @@
 {$ENDIF}
         end;
 
-    SDL_TouchID = Int32;
-    SDL_FingerID = Int32;
+    SDL_TouchID = LongInt;
+    SDL_FingerID = LongInt;
 
     TSDL_TouchFingerEvent = record
-        type_: UInt32;
-        windowId: UInt32;
+        type_: LongWord;
+        windowId: LongWord;
         touchId: SDL_TouchID;
         fingerId: SDL_FingerID;
-        state, padding1, padding2, padding3: UInt8;
-        x,y: UInt16;
-        dx,dy: Int16;
-        pressure: UInt16;
+        state, padding1, padding2, padding3: Byte;
+        x,y: Word;
+        dx,dy: ShortInt;
+        pressure: Word;
     end;
 //TODO: implement SDL_TouchButtonEvent, SDL_MultiGestureEvent, SDL_DollarGestureEvent