mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Fix steamdeck scaling issue in egui (#417)
This commit is contained in:
+1
-3
@@ -175,6 +175,7 @@ fn create_games_to_sync(rt: &mut Runtime, platforms: &[Box<dyn GamesPlatform>])
|
||||
|
||||
impl App for MyEguiApp {
|
||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut Frame) {
|
||||
ctx.set_pixels_per_point(1.0);
|
||||
let frame = egui::Frame::default()
|
||||
.stroke(Stroke::new(0., BACKGROUND_COLOR))
|
||||
.fill(BACKGROUND_COLOR);
|
||||
@@ -301,9 +302,6 @@ fn create_style(style: &mut egui::Style) {
|
||||
style.visuals.selection.bg_fill = PURLPLE;
|
||||
}
|
||||
fn setup(ctx: &egui::Context) {
|
||||
#[cfg(target_family = "unix")]
|
||||
ctx.set_pixels_per_point(0.999);
|
||||
|
||||
let mut style: egui::Style = (*ctx.style()).clone();
|
||||
create_style(&mut style);
|
||||
ctx.set_style(style);
|
||||
|
||||
Reference in New Issue
Block a user