From c2189f99d1781b4d676ea9741052df353e0180bd Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 27 Mar 2025 18:06:42 +1100 Subject: Use constant for pointsPerInch. --- win32/SurfaceGDI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/SurfaceGDI.cxx') diff --git a/win32/SurfaceGDI.cxx b/win32/SurfaceGDI.cxx index 0fcb99397..528a64573 100644 --- a/win32/SurfaceGDI.cxx +++ b/win32/SurfaceGDI.cxx @@ -360,7 +360,7 @@ int SurfaceGDI::PixelDivisions() { } int SurfaceGDI::DeviceHeightFont(int points) { - return ::MulDiv(points, LogPixelsY(), 72); + return ::MulDiv(points, LogPixelsY(), pointsPerInch); } void SurfaceGDI::LineDraw(Point start, Point end, Stroke stroke) { -- cgit v1.2.3