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

Force physical dimensions of the screen #239

Open
baldax95 opened this issue Mar 22, 2022 · 3 comments
Open

Force physical dimensions of the screen #239

baldax95 opened this issue Mar 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@baldax95
Copy link

The screen that I'm using right now does provide its own physical dimensions and the flutter device pixel ratio changes accordingly to it: my pixel ratio is 1.367054

What I want is to give dimensions of 0, 0
-d "0, 0"
To have a pixel ratio of 1.0, or otherwise even forcing the pixel ratio would be fine.

Anyway when I give the option for the dimensions the application still gets the dimensions from the GPU

Immagine 2022-03-22 174857
.

@ardera
Copy link
Owner

ardera commented Mar 23, 2022

That's a reasonable request, though -d "0,0" will internally be interpreted as no explicit screen dimensions, automatically determine them from KMS.

Right now if you want a device pixel ratio of 1.0, you can calculate the necessary physical dimensions yourself. There are 38 logical pixels per cm, so you'd have to specify -d "211,126" to get a pixel ratio of 1.0, roughly

Though a --pixel-ratio arg would probably be better.

@ardera ardera added the enhancement New feature or request label Mar 23, 2022
@baldax95
Copy link
Author

As always you're my hero!

@ardera
Copy link
Owner

ardera commented Mar 23, 2022

np 😄 though I'll reopen the issue and close it when I've implemented an explicit --pixel-ratio arg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants