# Window on mac is double the size

**URL:** <https://forum.defold.com/t/window-on-mac-is-double-the-size/72747>\
**Category:** Questions\
**Created:** [February 27, 2023, 9:54pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747 "2023-02-27T21:54:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [February 27, 2023, 9:54pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/1 "2023-02-27T21:54:20Z")

</div>

Hi there!

I have a very simple question that probably I have already solved in the past but now I forgot how…

In my defold project on mac the window has width and height double of the values set in game.project.display.width and height. I may guess this is due to my display being retina but I don’t know how to prevent this double size.

Any help?

Thanks!

---

<div class="post-metadata">

**Author:** ![WhiteBoxDev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/whiteboxdev/32/36080_2.png) [@WhiteBoxDev](https://forum.defold.com/u/WhiteBoxDev)\
**Post date:** [February 27, 2023, 10:23pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/2 "2023-02-27T22:23:40Z")

</div>

I believe checking the “High DPI” checkbox in your game.project file will solve this.

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [February 27, 2023, 10:25pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/3 "2023-02-27T22:25:19Z")

</div>

Thank @WhiteBoxDev!

Just tried! High DPI checked or unchecked same result: window of double the size…

---

<div class="post-metadata">

**Author:** ![sergey.lerg](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sergey.lerg/32/3970_2.png) [@sergey.lerg](https://forum.defold.com/u/sergey.lerg)\
**Post date:** [February 28, 2023, 2:23pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/4 "2023-02-28T14:23:00Z")

</div>

Using Defold on macOS for a long time, haven’t noticed such behavior. Also having retina displays.  
Record a video maybe?

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [February 28, 2023, 2:32pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/5 "2023-02-28T14:32:18Z")

</div>

Thanks @sergey.lerg

I created a new desktop project, launched it and taken the following screenshot

 ![Schermata 2023-02-28 alle 15.27.11](https://forum-defold-uploads.b-cdn.net/original/3X/9/d/9d6fec473f086cfee2be0da8df2a4f637af1ab73.jpeg)

As you see the dimension of the game area is 2560 x 1440, the double of the project size 1280 x 720. Maybe this is normal for a retina display?

---

<div class="post-metadata">

**Author:** ![sergey.lerg](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sergey.lerg/32/3970_2.png) [@sergey.lerg](https://forum.defold.com/u/sergey.lerg)\
**Post date:** [February 28, 2023, 2:36pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/6 "2023-02-28T14:36:45Z")

</div>

Ah, that’s the normal behavior for Defold on macOS. If you want the window to be smaller, you have to set smaller values in display settings of the project. Because macOS UI operates in “logical” pixels.

I think High DPI checkbox only affects rendering or coordinate calculation for things like mouse. It doesn’t affect the window size.

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [February 28, 2023, 2:41pm UTC](https://forum.defold.com/t/window-on-mac-is-double-the-size/72747/7 "2023-02-28T14:41:41Z")

</div>

Thanks again @sergey.lerg! This indeed explains the behavior I see. Ciao!
