From: DeaDDooMER Date: Wed, 13 Nov 2019 11:10:47 +0000 (+0300) Subject: fix screen size saving after first start X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=9fff77c37e31a1d9cbb35321a85d34f6158dd2b9;p=d2df-sdl.git fix screen size saving after first start --- diff --git a/src/game/g_options.pas b/src/game/g_options.pas index 481eb70..078ced2 100644 --- a/src/game/g_options.pas +++ b/src/game/g_options.pas @@ -171,6 +171,9 @@ begin gVSync := True; gTextureFilter := True; glLegacyNPOT := False; + gRC_Width := gScreenWidth; + gRC_Height := gScreenHeight; + gRC_FullScreen := gFullScreen; e_LogWriteLn('g_Options_SetDefaultVideo: w = ' + IntToStr(gScreenWidth) + ' h = ' + IntToStr(gScreenHeight)); g_Console_ResetBinds; end; @@ -185,6 +188,9 @@ begin gVSync := True; gTextureFilter := True; glLegacyNPOT := False; + gRC_Width := gScreenWidth; + gRC_Height := gScreenHeight; + gRC_FullScreen := gFullScreen; e_LogWriteLn('g_Options_SetDefaultVideo: w = ' + IntToStr(gScreenWidth) + ' h = ' + IntToStr(gScreenHeight)); g_Console_ResetBinds; end;