@Arima thanks for trying.
Basically I'm trying to find a way to STRETCH (withouth mantaining proportions) the background of my app, so that even if the aspect ratio is not 1.5 (iPhone) the background covers the whole screen. The element are then repositioned while mantaining their aspect ratio, only the background sprite will become "deformed".
To do this, after checking the aspect ratio, I change the width of the background to WindowWidth/2, this is because since the canvas is scaled by 100% it SHOULD double.
In reality there is a discrepancy between the canvas that c2 creates and the real WindoWidth, probably this is a bug or I am simply ignorant.
Open my capx if you can, I added an event.. click on the rightmost pixel of the screen and you'll see that there is a discrepancy.
640x1366(res) aspect ratio 0.47..
Rightmost Pixel-> Mouse.X = 1019, Absolute 1365 (which is the window-1)
596x570(res) ratio 1.04..
Rightmost Pixel-> Mouse.X = 458.4, Absolute 569
This changes as the aspect ratio changes, going from a few pixels to huge gaps.
If I can get the REAL canvas size of C2 I would've fixed my problems, because I would set the W varible to the real width that C2 is using.
I need it to be precise to reposition object (for example sprite set X = (Width-3)-(self.Width))