MGR: Allow for floating point rounding errors when determining DPI settings.

This commit is contained in:
Charlie Fenton 2014-08-25 07:06:10 -07:00
parent 8f3256753c
commit 36cd72b78b
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ void CSimpleGUIPanel::SetBackgroundBitmap() {
dc.DrawBitmap(*pSkinSimple->GetBackgroundImage()->GetBitmap(), 0, 0, false);
#ifdef __WXMSW__
if ((GetXDPIScaling() != 1.0) || (GetYDPIScaling() != 1.0)) {
if ((GetXDPIScaling() > 1.05) || (GetYDPIScaling() > 1.05)) {
wxImage img = m_bmpBg.ConvertToImage();
img.Rescale((int) (img.GetWidth()*GetXDPIScaling()),
(int) (img.GetHeight()*GetYDPIScaling()),