Skip to content

Commit 62b7d3d

Browse files
committed
Fix: win32
1 parent b5dd53e commit 62b7d3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/os/windows/font_win32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ struct EFCListFontsParam : EFCParam {
396396
explicit EFCListFontsParam(std::vector<FontFamily> &fonts) : fonts(fonts) {}
397397
};
398398

399-
static int CALLBACK ListStylesFontCallback(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *metric, DWORD type, LPARAM lParam)
399+
static int CALLBACK ListStylesFontCallback(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRICEX *, DWORD, LPARAM lParam)
400400
{
401401
EFCListFontsParam &info = *reinterpret_cast<EFCListFontsParam *>(lParam);
402402

@@ -421,7 +421,7 @@ static int CALLBACK ListFamiliesFontCallback(ENUMLOGFONTEX *lpelfe, NEWTEXTMETRI
421421

422422
LOGFONT &lf = lpelfe->elfLogFont;
423423

424-
DC dc = GetDC(nullptr);
424+
HDC dc = GetDC(nullptr);
425425
EnumFontFamiliesEx(dc, &lf, (FONTENUMPROC)&ListStylesFontCallback, reinterpret_cast<LPARAM>(&info), 0);
426426
ReleaseDC(nullptr, dc);
427427

0 commit comments

Comments
 (0)