I’m working on a Windows 8 application using Construct 2.
I set the Fullscreen in browser to Letterbox scale, and I want to change it to Scale for the Snaped view.
I found the Windows8 on view state Snapped event, but I didn’t found the action that change the Fullscreen in browser.
I found a solution that works for me.
First I export the windows 8 application from construct 2 without minifying the script (uncheck Minify script), and then under VS2012 I added to the end of
c2runtime.jsthis lines:and I changed the line 18068, that contains the mode number to :
Which means when the state view change, I set the Fullscreen in browser to
2or3depending onWindows.UI.ViewManagement.ApplicationView.valuePS : 0 = off, 1 = crop, 2 = scale, 3 = letterbox scale, 4 = integer letterbox scale
The last part of the
c2runtime.js: