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

Custom UI scaling support #24

Open
elsid opened this issue Jun 3, 2021 · 1 comment
Open

Custom UI scaling support #24

elsid opened this issue Jun 3, 2021 · 1 comment

Comments

@elsid
Copy link

elsid commented Jun 3, 2021

Is there any kind of custom UI scaling support? So it can be changed in runtime globally for all ui elements and be not a system specific.

egui supports it via egui::Context::set_pixels_per_point. And it works in their demo app. Each new frame this value is copied from the context into the raw input here. But egui-miniquad sets some system specific value here into egui::RawInput, the same value is used to draw ui here and to get mouse cursor position here.

How about to support custom UI scaling via egui::Context::set_pixels_per_point?

@optozorax
Copy link
Contributor

I want to add this in miniquad itself: not-fl3/miniquad#214

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

No branches or pull requests

2 participants