Hey everybody!
Soooo excited for OSX and Windows builds. Just awesome.
I’m having some trouble setting the App’s window size and could use some help.
For the mobile versions of my games, I am rolling my own letterboxing code, which scales to fit the background elements while repositioning foreground elements dynamically.
As such, I do not have width, height, or scale defined in the config.lua file. I am also using a lot of display.* information to set the size on the devices.
This all works wonderfully, however I am having trouble making it work on the OS X desktop version.
As mentioned on the forums previously, I removed all of the display.* calls and hard coded everything. I also set the width, height and scale in config.lua.
The app keeps launching with a humungous window though, about 4x the size of the simulator. Nothing I seemed to do would affect the size of the window.
To keep my sanity, I decided to make a very simple test app to try and narrow things down first.
I’m simply trying to display an image.
The image is 1136 x 726.
I set the width and height in config.lua to 1136 x 726
It works fine in the simulator. (I have it set up as a custom 1136 x 726 device)
Whenever I do a build however, it is always the same huge window that opens up.
If I set resizable to true in the build.settings, the same huge window launches - but I can now resize it to any size. And if I do another build, the app will launch at the previous resized size and at the previous window’s location - I assume this is how it supposed to work in OS X.
I am working on a 30" monitor hooked up to my laptop if that matters. But the simulator is on the monitor too and it is fine.
I am attaching my simple test project if anyone wants to take a look. I am trying to open an 1136x726 window to display a 1136x726 graphic.
Any help is appreciated!
Joe