Open itlancer opened 4 months ago
Seems like this is related to the render mode i.e. in CPU rendering, it works, but with Direct mode, it doesn't.
Testing here:
resizeToScreen
call gives a stage size of 1904x1161We can try to investigate this one...
Problem Description
NativeWindow::resizeToScreen()
call cause deformated fullscreen afterward. It critical when you try to turn AIR application window to fullscreen on specificScreen
.Reproduced with multiple AIR versions, even with AIR 50.2.4.4, 50.2.4.5, 50.2.5.1 and latest 51.0.1.1 with multiple different Windows devices with different applications. Same issue in all cases. Adding timeout after
NativeWindow::resizeToScreen()
didn't help. Didn't test with macOS and Linux.Related issues: https://github.com/airsdk/Adobe-Runtime-Support/issues/3239 https://github.com/airsdk/Adobe-Runtime-Support/issues/3203 https://github.com/airsdk/Adobe-Runtime-Support/issues/3177 https://github.com/airsdk/Adobe-Runtime-Support/issues/3176 https://github.com/airsdk/Adobe-Runtime-Support/issues/2549 https://github.com/airsdk/Adobe-Runtime-Support/issues/2497 https://github.com/airsdk/Adobe-Runtime-Support/issues/2495 https://github.com/airsdk/Adobe-Runtime-Support/issues/2241 https://github.com/airsdk/Adobe-Runtime-Support/issues/1840 https://github.com/airsdk/Adobe-Runtime-Support/issues/1669 https://github.com/airsdk/Adobe-Runtime-Support/issues/1425 https://github.com/airsdk/Adobe-Runtime-Support/issues/1200 https://github.com/airsdk/Adobe-Runtime-Support/issues/1123 https://github.com/airsdk/Adobe-Runtime-Support/issues/528
Steps to Reproduce
Launch application with code below. It just set stage color to green, draw red rectangle little smaller than fullscreen
Stage
(just to better show issue), resize application window to mainScreen
and change display state to fullscreen.Application example with sources attached. resizetoscreen_fullscreen_bug.zip
Actual Result: All stage looks red (without green borders). In real complex applications also you can see that content inside stage deformed (aspect ratio wrong).
Expected Result: You can see green border at right and bottom. No content deformation.
Known Workarounds
After
NativeWindow::resizeToScreen()
callNativeWindow::maximize()
. See code above.