Stage::fullscreenSourceRect property doesn't work properly with Stage3D content in fullscreen mode for Windows and macOS.
So hardware scaling for fullscreen cannot be used. You can see content deformations if you use Stage::fullscreenSourceRect.
It has been tested multiple AIR versions from 13.0.0.76 till latests AIR 32.0.0.89 and AIR 33.1.1.300 with different Windows and macOS devices with different OS versions.
It works fine only when Stage3D uses Context3DRenderMode.SOFTWARE.
Also it works fine with Android and iOS.
Use StageDisplayState.FULL_SCREEN or StageDisplayState.FULL_SCREEN_INTERACTIVE didn't change anything.
Using requestedDisplayResolution didn't change anything.
Launch code below with Windows or macOS device and click anywhere on stage. Application goes to fullscreen with Stage::fullscreenSourceRect property set up.
Application just display red square via Stage3D.
Problem Description
Stage::fullscreenSourceRect
property doesn't work properly withStage3D
content in fullscreen mode for Windows and macOS. So hardware scaling for fullscreen cannot be used. You can see content deformations if you useStage::fullscreenSourceRect
.It has been tested multiple AIR versions from 13.0.0.76 till latests AIR 32.0.0.89 and AIR 33.1.1.300 with different Windows and macOS devices with different OS versions. It works fine only when
Stage3D
usesContext3DRenderMode.SOFTWARE
. Also it works fine with Android and iOS. UseStageDisplayState.FULL_SCREEN
orStageDisplayState.FULL_SCREEN_INTERACTIVE
didn't change anything. UsingrequestedDisplayResolution
didn't change anything.Tracker link: https://tracker.adobe.com/#/view/AIR-3737959
Steps to Reproduce
Launch code below with Windows or macOS device and click anywhere on stage. Application goes to fullscreen with
Stage::fullscreenSourceRect
property set up. Application just display red square viaStage3D
.Application example with sources attached. stage3d_fullscreen_sourcerect_bug.zip
Actual Result: In fullscreen mode application display rectangle instead of square. Deformation occurs.
With Windows it looks like red rectangle:
With macOS it looks like red rectangle with Y offset (about 10 pixels from the top):
Expected Result: In fullscreen mode application should display red square without deformations. It should look like:
Known Workarounds
none *do not use
Stage::fullscreenSourceRect
for Windows and macOS platforms