# The window size I request is not used; instead, a scaled one is used

**URL:** <https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956>\
**Category:** Uncategorized\
**Created:** [November 17, 2017, 5:35pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956 "2017-11-17T17:35:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Monov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/stefan_monov/32/476_2.png) [@Stefan\_Monov](https://discourse.libcinder.org/u/Stefan_Monov)\
**Post date:** [November 17, 2017, 5:35pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/1 "2017-11-17T17:35:44Z")

</div>

Hi. 🙂

I’m doing:

```
setWindowSize(854, 480);

```

in setup(). But when I screenshot my app and measure the window in the screenshot, it’s 1068x600px. Coincidentally, that’s exactly how big the youtube player is in a maximized browser window on my PC.

Return values I’m getting:

- `getWindowWidth()` -\> 854.
- `getWindowContentScale()` -\> 1
- `isHighDensityDisplayEnabled()` -\> false

My display resolution is 1920x1080 and I’m on Windows 10.

Any idea what’s going on?

---

<div class="post-metadata">

**Author:** ![Stefan\_Monov](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/stefan_monov/32/476_2.png) [@Stefan\_Monov](https://discourse.libcinder.org/u/Stefan_Monov)\
**Post date:** [November 17, 2017, 5:55pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/2 "2017-11-17T17:55:31Z")

</div>

I just opened the Display settings of Windows and saw an option called “Change the size of text, apps, and other items” which has the value “125%”. This explains it 🙂

---

<div class="post-metadata">

**Author:** ![Kino](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/kino/32/465_2.png) [@Kino](https://discourse.libcinder.org/u/Kino)\
**Post date:** [November 18, 2017, 11:53am UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/3 "2017-11-18T11:53:33Z")

</div>

Yep, that’s it. I just had this problem a week back. corrected it manually like you did. I’m not sure if there’s a way to escape this magnification from Windows OS though? Does this forcibly affect all the apps in the OS or is there a setting in Windows implementation of the App class that can ignore this programmatically, the problem gets annoying and important when talking of distributing the Cinder based applications.

---

<div class="post-metadata">

**Author:** ![paul.houx](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/paul.houx/32/31_2.png) [@paul.houx](https://discourse.libcinder.org/u/paul.houx)\
**Post date:** [November 18, 2017, 3:41pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/4 "2017-11-18T15:41:59Z")

</div>

Make sure you enable “High DPI Aware” in your project manifest. This should take care of most problems related to desktop scaling. See also [this old post by Shawn Lipowski](https://forum.libcinder.org/topic/windos-8-1-disable-display-scaling#23286000002431065).

Look for the setting in your Options window. It may look slightly different, depending on the version of Visual Studio you use.

 ![hdpi_aware](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/0b66d80de520c5864d3bc0308c7358bdd911b060.png)

---

<div class="post-metadata">

**Author:** ![Kino](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/kino/32/465_2.png) [@Kino](https://discourse.libcinder.org/u/Kino)\
**Post date:** [November 19, 2017, 11:22am UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/5 "2017-11-19T11:22:06Z")

</div>

Thanks Paul for the tip. I had no idea Shawn is also a Cinder user, That’s pretty awesome, Shawn is a brilliant Houdini user and instructor ([VEX in Houdini](http://www.cgsociety.org/news/article/535/vex-in-houdini)), another feather in Cinder’s hat (and vice versa) IMO 😉

---

<div class="post-metadata">

**Author:** ![paul.houx](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/paul.houx/32/31_2.png) [@paul.houx](https://discourse.libcinder.org/u/paul.houx)\
**Post date:** [November 19, 2017, 8:16pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/6 "2017-11-19T20:16:09Z")

</div>

I know he is brilliant, I’m doing a project with him as we speak and it’s a blast. 🙂

---

<div class="post-metadata">

**Author:** ![Kino](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/kino/32/465_2.png) [@Kino](https://discourse.libcinder.org/u/Kino)\
**Post date:** [November 19, 2017, 8:26pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/7 "2017-11-19T20:26:26Z")

</div>

So you’re the guy he mentions in his class when he suggests Cinder for realtime applications and he mentions a co-worker of his who works with Cinder. Connecting the dots now, very very cool indeed 😃

---

<div class="post-metadata">

**Author:** ![andrewfb](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/andrewfb/32/2_2.png) [@andrewfb](https://discourse.libcinder.org/u/andrewfb)\
**Post date:** [November 21, 2017, 8:19pm UTC](https://discourse.libcinder.org/t/the-window-size-i-request-is-not-used-instead-a-scaled-one-is-used/956/8 "2017-11-21T20:19:52Z")

</div>

This problem should be addressed automatically with the following pull request:  
[https://github.com/cinder/Cinder/pull/1934](https://github.com/cinder/Cinder/pull/1934)

This also provides mechanisms for DPI-awareness if you have cause to use them, but the average Cinder app probably does not, and with this PR the default behavior on recent versions of Windows will avoid pixel-scaling as you were seeing.
