DEADSOFTWARE

fix stub system driver and some warnings
[d2df-sdl.git] / src / game / sdl / g_system.pas
index 4a4a3cb34c92799203e3db627d004a33d2d7769a..3e78fadcfdc997d324162bb67f1e47560c8f4ad4 100644 (file)
@@ -142,7 +142,7 @@ implementation
     f.BitsPerPixel := bpp;
     f.BytesPerPixel := (bpp + 7) div 8;
     m := SDL_ListModes(@f, SDL_OPENGL or SDL_FULLSCREEN);
-    if (m <> NIL) and (IntPtr(m) <> -1) then
+    if (m <> NIL) and (UIntPtr(m) <> UIntPtr(-1)) then
     begin
       count := 0;
       while m[count] <> nil do inc(count);