index 4a4a3cb34c92799203e3db627d004a33d2d7769a..b86a70b0941e5b187b454d872abeb29b6eff3bfe 100644 (file)
screen := SDL_SetVideoMode(w, h, bpp, flags);
if screen <> nil then
begin
- {$IFDEF USE_NOGL}
+ {$IFDEF NOGL_INIT}
nogl_Init;
{$ENDIF}
SDL_WM_SetCaption(GameTitle, nil);
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);
RemoveJoystick(i);
if screen <> nil then
begin
- {$IFDEF USE_NOGL}
+ {$IFDEF NOGL_INIT}
nogl_Quit;
{$ENDIF}
SDL_FreeSurface(screen)