From 82922a02d831317ca846f5d741863c676dc30c13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Jun 2003 22:41:44 +0000 Subject: [PATCH] fixed calculations in SetMapMode() (use FP division, not integer) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 06fbd633bb..190526870a 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -1615,8 +1615,8 @@ void wxDC::SetMapMode(int mode) return; } - double mm2pixelsX = pixel_width / mm_width, - mm2pixelsY = pixel_height / mm_height; + double mm2pixelsX = (double)pixel_width / mm_width, + mm2pixelsY = (double)pixel_height / mm_height; switch (mode) { -- 2.45.2