From 3ca5c26f6ac8a0f826f484f15e6c841b39969329 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 6 Oct 2008 21:04:02 +0000 Subject: [PATCH] fix double to int conversion warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 8ff7a8b302..dac205b2e3 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1169,6 +1169,6 @@ float wxDCBase::GetFontPointSizeAdjustment(float dpi) // ports need to emulate this bug too: const wxSize screenPixels = wxGetDisplaySize(); const wxSize screenMM = wxGetDisplaySizeMM(); - const int screenPPI_y = (screenPixels.y * 25.4) / screenMM.y; - return float(screenPPI_y) / dpi; + const float screenPPI_y = (screenPixels.y * 25.4) / screenMM.y; + return screenPPI_y / dpi; }