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:
Generated
+1
-1
@@ -640,7 +640,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "boilr"
|
name = "boilr"
|
||||||
version = "1.9.5"
|
version = "1.9.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
name = "boilr"
|
name = "boilr"
|
||||||
version = "1.9.5"
|
version = "1.9.6"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "^0.22.1"
|
base64 = "^0.22.1"
|
||||||
|
|||||||
@@ -26,6 +26,14 @@ https://hughsie.github.io/oars/index.html
|
|||||||
-->
|
-->
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<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">
|
<release version="1.9.4" date="2023-09-18">
|
||||||
<description>
|
<description>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
+1
-3
@@ -175,6 +175,7 @@ fn create_games_to_sync(rt: &mut Runtime, platforms: &[Box<dyn GamesPlatform>])
|
|||||||
|
|
||||||
impl App for MyEguiApp {
|
impl App for MyEguiApp {
|
||||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut Frame) {
|
fn update(&mut self, ctx: &egui::Context, _frame: &mut Frame) {
|
||||||
|
ctx.set_pixels_per_point(1.0);
|
||||||
let frame = egui::Frame::default()
|
let frame = egui::Frame::default()
|
||||||
.stroke(Stroke::new(0., BACKGROUND_COLOR))
|
.stroke(Stroke::new(0., BACKGROUND_COLOR))
|
||||||
.fill(BACKGROUND_COLOR);
|
.fill(BACKGROUND_COLOR);
|
||||||
@@ -301,9 +302,6 @@ fn create_style(style: &mut egui::Style) {
|
|||||||
style.visuals.selection.bg_fill = PURLPLE;
|
style.visuals.selection.bg_fill = PURLPLE;
|
||||||
}
|
}
|
||||||
fn setup(ctx: &egui::Context) {
|
fn setup(ctx: &egui::Context) {
|
||||||
#[cfg(target_family = "unix")]
|
|
||||||
ctx.set_pixels_per_point(0.999);
|
|
||||||
|
|
||||||
let mut style: egui::Style = (*ctx.style()).clone();
|
let mut style: egui::Style = (*ctx.style()).clone();
|
||||||
create_style(&mut style);
|
create_style(&mut style);
|
||||||
ctx.set_style(style);
|
ctx.set_style(style);
|
||||||
|
|||||||
Reference in New Issue
Block a user