Use line height from screen info in motd and scoreboard

This commit is contained in:
Roman Chistokhodov 2019-04-11 13:26:02 +03:00 committed by Alibek Omarov
parent 43d63a1448
commit 984dab64d3
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ void CHudMOTD::Reset( void )
m_bShow = 0;
}
#define LINE_HEIGHT 13
#define LINE_HEIGHT (gHUD.m_scrinfo.iCharHeight)
#define ROW_GAP 13
#define ROW_RANGE_MIN 30
#define ROW_RANGE_MAX ( ScreenHeight - 100 )

View File

@ -108,7 +108,7 @@ We have a minimum width of 1-320 - we could have the field widths scale with it?
int SCOREBOARD_WIDTH = 320;
// Y positions
#define ROW_GAP 13
#define ROW_GAP (gHUD.m_scrinfo.iCharHeight)
#define ROW_RANGE_MIN 15
#define ROW_RANGE_MAX ( ScreenHeight - 50 )