index a31c4afccf67c14505a4f7ed56a09e9be0ef3380..6e587868d4114524cb45887784d91528fdc99a9c 100644 (file)
g_holmes,
{$ENDIF}
SysUtils, Classes, Math,
- g_base, r_graphics,
+ g_base, g_basic, r_graphics,
g_system, g_touch,
MAPDEF, xprofiler, utils, wadreader,
e_input, e_sound,
// HACK: take stats screenshot immediately after the first frame of the stats showing
if gScreenshotStats and (not StatShotDone) and (Length(CustomStat.PlayerStat) > 1) then
begin
+{$IFNDEF HEADLESS}
g_TakeScreenShot('stats/' + StatFilename);
+{$ENDIF}
StatShotDone := True;
end;
end;
back: string;
plView1, plView2: TPlayer;
Split: Boolean;
+ MsgLineLength: Integer;
+ MsgText: String;
begin
if gExit = EXIT_QUIT then Exit;
w := 0;
h := 0;
e_CharFont_GetSizeFmt(gMenuFont, MessageText, w, h);
+ MsgLineLength := (gScreenWidth - 204) div e_CharFont_GetMaxWidth(gMenuFont);
+ MsgText := b_Text_Wrap(b_Text_Format(MessageText), MsgLineLength);
if Split then
e_CharFont_PrintFmt(gMenuFont, (gScreenWidth div 2)-(w div 2),
- (gScreenHeight div 2)-(h div 2), MessageText)
+ (gScreenHeight div 2)-(h div 2), MsgText)
else
e_CharFont_PrintFmt(gMenuFont, (gScreenWidth div 2)-(w div 2),
- Round(gScreenHeight / 2.75)-(h div 2), MessageText);
+ Round(gScreenHeight / 2.75)-(h div 2), MsgText);
end;
if IsDrawStat or (gSpectMode = SPECT_STATS) then