summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35ca898)
raw | patch | inline | side by side (parent: 35ca898)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 3 Oct 2017 20:23:45 +0000 (23:23 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 3 Oct 2017 20:25:06 +0000 (23:25 +0300) |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index 258b489b1f8f35f335061f207515c48406bab2b0..d20f32cc00e86ad555bb38a2a33735baf4f1d067 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
{$ENDIF}
arg: AnsiString;
mdfo: TStream;
+ itmp: Integer;
+ valres: Word;
begin
{$IFDEF HEADLESS}
e_NoGraphics := true;
{.$ENDIF}
if arg = '--holmes' then begin g_holmes_enabled := true; g_Game_SetDebugMode(); end;
+
if (arg = '--holmes-ui-scale') or (arg = '-holmes-ui-scale') then
begin
if (idx <= ParamCount) then
end;
end;
+ if (arg = '--holmes-font') or (arg = '-holmes-font') then
+ begin
+ if (idx <= ParamCount) then
+ begin
+ itmp := 0;
+ val(ParamStr(idx), itmp, valres);
+ if (valres = 0) then
+ begin
+ case itmp of
+ 8: uiContext.font := 'win8';
+ 14: uiContext.font := 'win14';
+ 16: uiContext.font := 'win16';
+ end;
+ end;
+ Inc(idx);
+ end;
+ end;
+
if (arg = '--game-scale') or (arg = '-game-scale') then
begin
if (idx <= ParamCount) then