# Scaling physical/virtual display size

**URL:** <https://forum.juce.com/t/scaling-physical-virtual-display-size/11590>\
**Category:** General JUCE discussion\
**Created:** [October 2, 2013, 12:44pm UTC](https://forum.juce.com/t/scaling-physical-virtual-display-size/11590 "2013-10-02T12:44:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [October 2, 2013, 12:44pm UTC](https://forum.juce.com/t/scaling-physical-virtual-display-size/11590/1 "2013-10-02T12:44:22Z")

</div>

&nbsp;setGlobalScaleFactor description says&nbsp;

**&nbsp;Sets a global scale factor to be used for all desktop windows.  
&nbsp;\>\>\> &nbsp; &nbsp; Setting this will also scale the monitor sizes that are returned by getDisplays().**  
&nbsp;

Is there away to get the real physical number of pixels, independent&nbsp;from scale-factor?

Because, i&nbsp;want to set the scale factor that the virtual width is 400 px, so in need the physical size.

Also how is display rotating (90 degrees?) is handled, will full-screen-windows automatic re-sized to fit, i remember on android (with scale factor \>1) it won't be re-sized.

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 2, 2013, 7:43pm UTC](https://forum.juce.com/t/scaling-physical-virtual-display-size/11590/2 "2013-10-02T19:43:23Z")

</div>

Yes, the display&nbsp;also tells you its&nbsp;DPI
