mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 11:11:04 +00:00
a few Getchars
This commit is contained in:
parent
555a4d3dd5
commit
a2b93fdc23
5 changed files with 17 additions and 17 deletions
|
@ -144,14 +144,14 @@ void FNotifyBuffer::DrawNative()
|
|||
|
||||
if (!center)
|
||||
{
|
||||
DrawText(twod, font, CR_UNTRANSLATED, 0, line, notify.Text,
|
||||
DrawText(twod, font, CR_UNTRANSLATED, 0, line, notify.Text.GetChars(),
|
||||
DTA_FullscreenScale, FSMode_ScaleToHeight,
|
||||
DTA_VirtualWidthF, 320 * scale, DTA_VirtualHeightF, 200 * scale, DTA_KeepRatio, true,
|
||||
DTA_Alpha, alpha, TAG_DONE);
|
||||
}
|
||||
else
|
||||
{
|
||||
DrawText(twod, font, CR_UNTRANSLATED, 160 * scale - font->StringWidth(notify.Text) / 2, line, notify.Text,
|
||||
DrawText(twod, font, CR_UNTRANSLATED, 160 * scale - font->StringWidth(notify.Text) / 2, line, notify.Text.GetChars(),
|
||||
DTA_FullscreenScale, FSMode_ScaleToHeight,
|
||||
DTA_VirtualWidthF, 320 * scale, DTA_VirtualHeightF, 200 * scale,
|
||||
DTA_Alpha, alpha, TAG_DONE);
|
||||
|
@ -222,7 +222,7 @@ void FNotifyBuffer::Draw()
|
|||
color = PrintColors[notify.PrintLevel];
|
||||
|
||||
if (!center)
|
||||
DrawText(twod, font, color, 0, line * NotifyFontScale, notify.Text,
|
||||
DrawText(twod, font, color, 0, line * NotifyFontScale, notify.Text.GetChars(),
|
||||
DTA_FullscreenScale, FSMode_ScaleToHeight,
|
||||
DTA_VirtualWidthF, 320. * scale,
|
||||
DTA_VirtualHeightF, 200. * scale,
|
||||
|
@ -230,7 +230,7 @@ void FNotifyBuffer::Draw()
|
|||
DTA_Alpha, alpha, TAG_DONE);
|
||||
else
|
||||
DrawText(twod, font, color, 160 * scale - font->StringWidth (notify.Text) / 2.,
|
||||
line, notify.Text,
|
||||
line, notify.Text.GetChars(),
|
||||
DTA_FullscreenScale, FSMode_ScaleToHeight,
|
||||
DTA_VirtualWidthF, 320. * scale,
|
||||
DTA_VirtualHeightF, 200. * scale,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue