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; }