From cce6bd57491263eb14fd0af60add43acbd79cbeb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Dec 2011 12:03:58 +1100 Subject: Allow fractional pixel size return. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 5671d683e..3a37b3529 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1714,7 +1714,7 @@ XYPOSITION SurfaceD2D::WidthChar(Font &font_, char ch) { pTextLayout->Release(); } } - return int(width + 0.5); + return width; } XYPOSITION SurfaceD2D::Ascent(Font &font_) { -- cgit v1.2.3