mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 09:30:37 +02:00
Merged revision(s) 55665 #81635180d3 from trunk:
LCL: GTK2: Fixed font issues at high-DPI on Gtk2. Issue #32268 ........ git-svn-id: branches/fixes_1_8@55738 -
This commit is contained in:
parent
8c4eda4980
commit
96a4ba8f7c
@ -5206,7 +5206,7 @@ begin
|
||||
if not pango_font_description_get_size_is_absolute(PangoDesc) or (AFontSize >= PANGO_SCALE) then
|
||||
AFontSize := AFontSize div PANGO_SCALE;
|
||||
|
||||
PLogfont(Buf)^.lfHeight := MulDiv(AFontSize, GetDeviceCaps(0, LOGPIXELSX) , 72);
|
||||
PLogfont(Buf)^.lfHeight := MulDiv(AFontSize, Screen.PixelsPerInch, 72);
|
||||
end;
|
||||
end;
|
||||
end else
|
||||
|
Loading…
Reference in New Issue
Block a user