mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
fix tooltip scaling when winfonts are enabled
This commit is contained in:
@@ -43,7 +43,7 @@ typedef struct
|
||||
} HWINFONT;
|
||||
|
||||
LONG gWinFontAdjust;
|
||||
HWINFONT WinFonts[WIN_LASTFONT];
|
||||
HWINFONT WinFonts[WIN_LASTFONT + 2]; // extra space for the tooltip fonts
|
||||
|
||||
INT32 WinFontMap[MAX_WINFONTMAP];
|
||||
|
||||
@@ -327,7 +327,7 @@ INT32 FindFreeWinFont( void )
|
||||
|
||||
HWINFONT *GetWinFont( INT32 iFont )
|
||||
{
|
||||
if ( iFont == -1 || iFont >=WIN_LASTFONT)
|
||||
if (iFont == -1 || iFont >= sizeof(WinFonts) )
|
||||
{
|
||||
return( NULL );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user