mirror of https://github.com/BOINC/boinc.git
MGR: Allow for floating point rounding errors when determining DPI settings.
This commit is contained in:
parent
8f3256753c
commit
36cd72b78b
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue