mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
gdi32: Expand maximum font count to 4096, warn when we go over that limit.
This commit is contained in:
parent
3a02030d54
commit
fed3d50663
@ -1571,7 +1571,7 @@ static void test_GetFontUnicodeRanges(void)
|
||||
ReleaseDC(NULL, hdc);
|
||||
}
|
||||
|
||||
#define MAX_ENUM_FONTS 256
|
||||
#define MAX_ENUM_FONTS 4096
|
||||
|
||||
struct enum_font_data
|
||||
{
|
||||
@ -1596,6 +1596,8 @@ static INT CALLBACK arial_enum_proc(const LOGFONT *lf, const TEXTMETRIC *tm, DWO
|
||||
#endif
|
||||
if (efd->total < MAX_ENUM_FONTS)
|
||||
efd->lf[efd->total++] = *lf;
|
||||
else
|
||||
trace("enum tests invalid; you have more than %d fonts\n", MAX_ENUM_FONTS);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -1608,6 +1610,8 @@ static INT CALLBACK arial_enum_procw(const LOGFONTW *lf, const TEXTMETRICW *tm,
|
||||
|
||||
if (efd->total < MAX_ENUM_FONTS)
|
||||
efd->lf[efd->total++] = *lf;
|
||||
else
|
||||
trace("enum tests invalid; you have more than %d fonts\n", MAX_ENUM_FONTS);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user