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