mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
Merged revision(s) 58639 #e675379977 from trunk:
Win32 and CustomDrawn: fix compilation with fpc trunk after r39480 #e67589ea6f. Issue #0034022. ........ git-svn-id: branches/fixes_1_8@58741 -
This commit is contained in:
parent
b6d367d8c7
commit
e495a0b060
@ -1302,8 +1302,13 @@ begin
|
||||
Rec.LParam := LParam;
|
||||
Rec.CallBack := CallBack;
|
||||
LFW.lfFaceName := UTF8ToUTF16(FontName);
|
||||
{$if fpc_fullversion < 30101}
|
||||
Result := LongInt(Windows.EnumFontFamiliesExW(DC,
|
||||
LFW, windows.FontEnumExProc(@EnumExProcRedirW), Windows.LParam(@Rec), Flags));
|
||||
{$else}
|
||||
Result := LongInt(Windows.EnumFontFamiliesExW(DC,
|
||||
LFW, windows.FontEnumExProcW(@EnumExProcRedirW), Windows.LParam(@Rec), Flags));
|
||||
{$ifend}
|
||||
end;
|
||||
|
||||
(*{------------------------------------------------------------------------------
|
||||
|
@ -1305,8 +1305,13 @@ begin
|
||||
Rec.LParam := LParam;
|
||||
Rec.CallBack := CallBack;
|
||||
LFW.lfFaceName := UTF8ToUTF16(FontName);
|
||||
{$if fpc_fullversion < 30101}
|
||||
Result := LongInt(Windows.EnumFontFamiliesExW(DC,
|
||||
LFW, windows.FontEnumExProc(@EnumExProcRedirW), Windows.LParam(@Rec), Flags));
|
||||
{$else}
|
||||
Result := LongInt(Windows.EnumFontFamiliesExW(DC,
|
||||
LFW, windows.FontEnumExProcW(@EnumExProcRedirW), Windows.LParam(@Rec), Flags));
|
||||
{$ifend}
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user