Browse Source

Use line height from screen info in motd and scoreboard

hltopdown
Roman Chistokhodov 6 years ago committed by Alibek Omarov
parent
commit
984dab64d3
  1. 2
      cl_dll/MOTD.cpp
  2. 2
      cl_dll/scoreboard.cpp

2
cl_dll/MOTD.cpp

@ -56,7 +56,7 @@ void CHudMOTD::Reset( void ) @@ -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 )

2
cl_dll/scoreboard.cpp

@ -108,7 +108,7 @@ We have a minimum width of 1-320 - we could have the field widths scale with it? @@ -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 )

Loading…
Cancel
Save