Skip to content

Commit

Permalink
Fix steamdeck scaling issue in egui (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipK authored Oct 30, 2024
1 parent 10caa7b commit f41187a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "boilr"
version = "1.9.5"
version = "1.9.6"

[dependencies]
base64 = "^0.22.1"
Expand Down
8 changes: 8 additions & 0 deletions flatpak/io.github.philipk.boilr.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ https://hughsie.github.io/oars/index.html
-->
<content_rating type="oars-1.1" />
<releases>
<release version="1.9.6" date="2024-10-30">
<description>
<ul>
<li>Update dependencies</li>
<li>Fix scaling issue on steam deck</li>
</ul>
</description>
</release>
<release version="1.9.4" date="2023-09-18">
<description>
<ul>
Expand Down
4 changes: 1 addition & 3 deletions src/ui/uiapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f41187a

Please sign in to comment.