Skip to content
Permalink
Browse files

Fix center text alignment issue

  • Loading branch information...
dpjudas committed Sep 9, 2016
1 parent e794e59 commit 303da0e071d3b6b4fac993147fe4dcdce0eb7680
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/c_console.cpp
@@ -811,8 +811,8 @@ static void C_DrawNotifyText ()
DTA_KeepRatio, true,
DTA_AlphaF, alpha, TAG_DONE);
else
screen->DrawText (SmallFont, color, (screen->GetWidth() / active_con_scaletext() -
SmallFont->StringWidth (NotifyStrings[i].Text))/ active_con_scaletext(),
screen->DrawText (SmallFont, color, (screen->GetWidth() -
SmallFont->StringWidth (NotifyStrings[i].Text) * active_con_scaletext()) / 2 / active_con_scaletext(),
line, NotifyStrings[i].Text,
DTA_VirtualWidth, screen->GetWidth() / active_con_scaletext(),
DTA_VirtualHeight, screen->GetHeight() / active_con_scaletext(),

0 comments on commit 303da0e

Please sign in to comment.
You can’t perform that action at this time.