Skip to content
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

Stage.contentsScaleFactor always 1 on Linux (HiDPI support) #1123

Open
pol2095 opened this issue Sep 2, 2021 · 8 comments
Open

Stage.contentsScaleFactor always 1 on Linux (HiDPI support) #1123

pol2095 opened this issue Sep 2, 2021 · 8 comments
Labels

Comments

@pol2095
Copy link

pol2095 commented Sep 2, 2021

Description

Stage.contentsScaleFactor always 1 on Linux (Ubuntu 20 and Fedora 34 : display scaling is 200%)
HiDPI support for 4K screen

I added in the app descriptor :
<requestedDisplayResolution>high</requestedDisplayResolution>

my app is very small vs the same app on Windows or Mac.

I found a workaround here, but it's not perfect.

xrandr -s 1920x1080
/path/to/executable
xrandr -s 3840x2160

Thanks.

@pol2095 pol2095 added the Feature label Sep 2, 2021
@pol2095 pol2095 changed the title Stage.contentsScaleFactor always 1 on Linux Stage.contentsScaleFactor always 1 on Linux (HiDPI support) Sep 3, 2021
@pol2095
Copy link
Author

pol2095 commented Sep 29, 2021

Any news about this problem ?

@ajwfrost
Copy link
Collaborator

Hi @pol2095 - we had been looking into this and were trying to get the application scaling to work but ran into some issues.. I'll see whether the developer looking at this has had any further luck..

@pol2095
Copy link
Author

pol2095 commented Sep 30, 2021

Air app use gtk2, Ubuntu app using scaleFactor seems use gtk3.

@ajwfrost
Copy link
Collaborator

Yes that's what the developer has told me, he was looking at whether there are any cunning workarounds we can try to apply to get it to manually scale. But we can also look at whether it's feasible to update to gtk3 I guess..

@pol2095
Copy link
Author

pol2095 commented Jul 17, 2024

Any news about this Feature ?

Using Fractional Scaling it's possible to solve the problem (tried on Ubuntu).

@ajwfrost
Copy link
Collaborator

We are progressing on the GTK3 work, so once that's done we can set this up properly..

@pol2095
Copy link
Author

pol2095 commented Oct 3, 2024

Any news of GTK3 on AIR SDK for Linux ?
Why did you choose GTK3 and not GTK4 ?

@ajwfrost
Copy link
Collaborator

ajwfrost commented Oct 3, 2024

Hi

Sorry for the delay - just spoke with the guy who had done this, it's pretty much there but needs to be integrated into our latest codebase and then a lot of testing...

The switch from GTK2 to GTK3 looked a lot easier than the switch from GTK3 to GTK4! So mostly it was to make it easier to implement the changes; we didn't actually need any of the functionality from GTK4.

Our plan at the moment is to put this change in to our 51.2 branch and then probably push out a beta of it, as there are quite a few changes going in there. So we'll also push out another (lower-risk) update on 51.1 in the meantime..

thanks

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

2 participants