1. mst
  2. ooo340

Commits

hdu  committed 56e7427

#i107076# device DPI now gets a minimum limit

  • Participants
  • Parent commits 19e93f5
  • Branches default

Comments (0)

Files changed (1)

File vcl/aqua/source/gdi/salgdi.cxx

View file
             DBG_ERROR( "no screen found" );
         }
         
+        // #i107076# maintaining size-WYSIWYG-ness causes many problems for low resolution devices
+        //           or for mis-reporting devices => it is better to use a default resolution then
+        static const int nMinDPI = 72;
+        if( (mnRealDPIX < nMinDPI) || (mnRealDPIY < nMinDPI) )
+            mnRealDPIX = mnRealDPIY = nMinDPI;
+
         // for OSX any anisotropy reported for the display resolution is best ignored (e.g. TripleHead2Go)
         mnRealDPIX = mnRealDPIY = (mnRealDPIX + mnRealDPIY + 1) / 2;
 
-        // #i107076# maintaining size-WYSIWYG-ness causes many problems for low resolution devices
-        //           or for mis-reporting devices => it is better to use a default resolution then
-        if( mnRealDPIY < 72 )
-            mnRealDPIY = 72;
-
         pSalData->mnDPIX = mnRealDPIX;
         pSalData->mnDPIY = mnRealDPIY;
     }