Skip to content

Commit f41187a

Browse files
authored
Fix steamdeck scaling issue in egui (#417)
1 parent 10caa7b commit f41187a

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "boilr"
4-
version = "1.9.5"
4+
version = "1.9.6"
55

66
[dependencies]
77
base64 = "^0.22.1"

flatpak/io.github.philipk.boilr.appdata.xml

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ https://hughsie.github.io/oars/index.html
2626
-->
2727
<content_rating type="oars-1.1" />
2828
<releases>
29+
<release version="1.9.6" date="2024-10-30">
30+
<description>
31+
<ul>
32+
<li>Update dependencies</li>
33+
<li>Fix scaling issue on steam deck</li>
34+
</ul>
35+
</description>
36+
</release>
2937
<release version="1.9.4" date="2023-09-18">
3038
<description>
3139
<ul>

src/ui/uiapp.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ fn create_games_to_sync(rt: &mut Runtime, platforms: &[Box<dyn GamesPlatform>])
175175

176176
impl App for MyEguiApp {
177177
fn update(&mut self, ctx: &egui::Context, _frame: &mut Frame) {
178+
ctx.set_pixels_per_point(1.0);
178179
let frame = egui::Frame::default()
179180
.stroke(Stroke::new(0., BACKGROUND_COLOR))
180181
.fill(BACKGROUND_COLOR);
@@ -301,9 +302,6 @@ fn create_style(style: &mut egui::Style) {
301302
style.visuals.selection.bg_fill = PURLPLE;
302303
}
303304
fn setup(ctx: &egui::Context) {
304-
#[cfg(target_family = "unix")]
305-
ctx.set_pixels_per_point(0.999);
306-
307305
let mut style: egui::Style = (*ctx.style()).clone();
308306
create_style(&mut style);
309307
ctx.set_style(style);

0 commit comments

Comments
 (0)