iPhone Plus sizes returning wrong dimensions?
My application has the set stage size of 640x960. I have it scaled with SHOW_ALL
var screenH:Number = Capabilities.screenResolutionY;
var screenW:Number = Capabilities.screenResolutionX;
scaledH = screenH / 960; //2 for iPhone 6+
scaledW = screenW / 640; //1.6875
if (scaledW < scaledH) {
screenRatio = scaledW;
} else {
screenRatio = scaledH;
}
screenHextra = (screenH - (960 * screenRatio)) / 2;
screenWextra = (screenW - (640 * screenRatio)) / 2;
After the scaling is done using SHOW_ALL, screenHextra should technically give me the extra stage space on the top and bottom. This works on iPhone 5's and somewhat on iPhone 6's but the numbers being returned on the iPhone plus sizes are way off. Is it something i'm missing?
I have tested the values returned on the iPhone 6, my graphics which are positioned based on the screenHextra are not exactly where they should be, but usable. But like I said the plus sizes are way off.
