Usage of egui Context.set_pixels_per_point don't work
buxx opened this issue · 3 comments
buxx commented
Hello,
I'm trying to use Context.set_pixels_per_point don't work function, but it has no effect. Example :by modifying demo example :
[...]
// Run the UI code:
self.egui_mq.run(ctx, |egui_ctx| {
egui_ctx.set_pixels_per_point(2.0);
[...]
Do you know why it has no effect and how to fix it ?
emilk commented
egui-miniquad resets the scaling each frame: https://github.com/not-fl3/egui-miniquad/blob/master/src/input.rs#L3-L14
The fix should be to just set it the first frame. PR:s welcome!
buxx commented
Thank you very much ! I will write a PR !
buxx commented
MR merged :)