Problem Description
A black border shows up when previewing with NW.js and after export around the game when changing the "Fullscreen in browser" option to "Off", "Letterbox scale" or "Letterbox integer scale".
Attach a Capx
https://www.dropbox.com/s/cfu6s9i89m570 ... rnwjs.capx
Description of Capx
The project is a new retro style project with the "Fullscreen in browser" setting changed to "Letterbox integer scale", preview with NW.js or export it to see the black borders.
Steps to Reproduce Bug
- Change "Fullscreen in browser" option to "Off", "Letterbox scale" or "Letterbox integer scale".
- Run the game with NW.js
Observed Result
https://www.dropbox.com/s/fnq6pmuctko4y ... result.png
There is black borders around the game. I've also tried changing the window size with the NW.js object to try and remove the borders manually but they are different in size depending on if it's in preview or after export and even on different computers (only tested on Windows 10 and Windows 7) so it didn't work.
I've also tried setting it to the other options where you don't get any black borders but then it's not showing up as the correct size and projects with the point sampling becomes blurry (not pixel perfect). The width and height doesn't show up correctly.
Expected Result
The window should be the same size as the window width and height in properties (or using the NW.js object) so you don't get any borders around the game.
Affected Browsers
Operating System and Service Pack
Windows 10
Construct 2 Version ID
r230