Skip to content

[Linux] Application doesn't work properly with OS scaling #3823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
itlancer opened this issue May 26, 2025 · 0 comments
Open

[Linux] Application doesn't work properly with OS scaling #3823

itlancer opened this issue May 26, 2025 · 0 comments
Labels

Comments

@itlancer
Copy link

Problem Description

Application doesn't work properly with OS scaling for Linux.

Tested with multiple AIR versions, even with latest AIR 51.2.1.4 and AIR 51.2.1.3 with multiple different devices, OS versions (Ubuntu 22/24 LTS x86_64) with different applications.
The same issue in all cases with non-100% scaling.
There is no such issues with other platforms.

Related issues:
#1699 (reply in thread)
#3066
#1669
#1123
#1425
#3241
#3498
#3505

Steps to Reproduce

Launch application with code below with Linux device with 200% scaling in OS.

Application example with sources attached.
linux_scaling_bug.zip

package {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	public class LinuxScalingBug extends Sprite {
		
		public function LinuxScalingBug() {
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event):void {
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var sprite:Sprite = new Sprite();
			sprite.graphics.beginFill(0xff0000);
			sprite.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
			sprite.graphics.endFill();
			addChild(sprite);
		}
	}
}

Actual Result:
Application content will be shown for 1/4 of window:
Image

Expected Result:
Application content will be shown for whole window:
Image

Known Workarounds

none

@itlancer itlancer added the Bug label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant