X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_options.pas;h=493e07cb48c9475bd4043c04ddbc253a1756cf3b;hb=8d99e158428b4ed90b09ee17933c9a2a48532157;hp=54acb699e1be8cecfc7e402a00589f8895e1d97b;hpb=57c7e5c9222d182253629447f8f1d9391968f524;p=d2df-sdl.git diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 54acb69..493e07c 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -134,11 +134,7 @@ var implementation uses -{$IFDEF USE_NANOGL} - nanoGL, -{$ELSE} - GL, GLExt, -{$ENDIF} + {$INCLUDE ../nogl/noGLuses.inc} e_log, e_input, g_window, g_sound, g_gfx, g_player, Math, g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game, g_main, e_texture, g_items, wadreader, e_graphics, g_touch, SDL2; @@ -146,12 +142,12 @@ uses procedure g_Options_SetDefaultVideo; {$IF DEFINED(ANDROID)} var - display: PSDL_DisplayMode; + display: TSDL_DisplayMode; {$ENDIF} begin {$IF DEFINED(ANDROID)} (* On android set max screen size *) - SDL_GetCurrentDisplayMode(0, display); + SDL_GetCurrentDisplayMode(0, @display); gScreenWidth := display.w; gScreenHeight := display.h; gWinRealPosX := 0; @@ -175,6 +171,7 @@ begin gTextureFilter := True; glLegacyNPOT := False; {$ENDIF} + e_LogWriteLn('g_Options_SetDefaultVideo: w = ' + IntToStr(gScreenWidth) + ' h = ' + IntToStr(gScreenHeight)); end; procedure g_Options_SetDefault();