X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_window.pas;h=a09f93f6e786eff9239a42cd92f5b630032a24c9;hb=7da841038d5a4e415324d4441cd397f6664e892d;hp=d20f32cc00e86ad555bb38a2a33735baf4f1d067;hpb=015a25e0eecbc51ad0d15ff3194218a7fd8a55e0;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index d20f32c..a09f93f 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -772,6 +772,9 @@ var begin {$IFDEF HEADLESS} e_NoGraphics := true; +{$ELSE} + uiInitialize(); + uiContext.font := 'win14'; {$ENDIF} idx := 1; @@ -817,7 +820,8 @@ begin begin itmp := 0; val(ParamStr(idx), itmp, valres); - if (valres = 0) then + {$IFNDEF HEADLESS} + if (valres = 0) and (not g_holmes_imfunctional) then begin case itmp of 8: uiContext.font := 'win8'; @@ -825,6 +829,11 @@ begin 16: uiContext.font := 'win16'; end; end; + {$ELSE} + // fuck off, fpc! + itmp := itmp; + valres := valres; + {$ENDIF} Inc(idx); end; end;