not-fl3/egui-miniquad

Custom UI scaling support

elsid opened this issue · 1 comments

elsid commented

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?

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