You've already forked lazarus-ccr
tvplanit: Update VpEdFmt to scale correctly in the HighDpi mode of Lazarus 1.8. Less hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5884 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1597,7 +1597,7 @@ var
|
||||
DC: HDC;
|
||||
begin
|
||||
DC := GetDC(0);
|
||||
SavedFontHandle := SelectObject(DC, ACanvas.Font.Handle);
|
||||
SavedFontHandle := SelectObject(DC, ACanvas.Font.Reference.Handle);
|
||||
try
|
||||
GetTextMetrics(DC, Metrics{%H-});
|
||||
Result := Metrics.tmAveCharWidth;
|
||||
|
Reference in New Issue
Block a user