X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fsdl%2Fg_system.pas;h=3e78fadcfdc997d324162bb67f1e47560c8f4ad4;hp=4a4a3cb34c92799203e3db627d004a33d2d7769a;hb=ff17260e083bdf4461154b916a716cd9b61126b1;hpb=4171d8dd0b8d733da27c584616e431811bf0fdcf diff --git a/src/game/sdl/g_system.pas b/src/game/sdl/g_system.pas index 4a4a3cb..3e78fad 100644 --- a/src/game/sdl/g_system.pas +++ b/src/game/sdl/g_system.pas @@ -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);