diff options
author | nyamatongwe <unknown> | 2011-12-13 12:03:58 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-12-13 12:03:58 +1100 |
commit | 2b03b26fcd136791b9a48f4a05357efae347227b (patch) | |
tree | 53051d1a46074ee64781ab900124bf45e55f50ee | |
parent | 73baf3f2a33512975b3a9a2bbadf96d5935e0a02 (diff) | |
download | scintilla-mirror-2b03b26fcd136791b9a48f4a05357efae347227b.tar.gz |
Allow fractional pixel size return.
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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_) { |