Skip to content

Commit

Permalink
editor-orbclient: fix scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 7, 2023
1 parent db0883b commit 659001d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/editor-orbclient/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() {
let display_scale = match orbclient::get_display_size() {
Ok((w, h)) => {
log::info!("Display size: {}, {}", w, h);
(h as f32 / 1600.0) + 1.0
(h / 1600) as f32 + 1.0
}
Err(err) => {
log::warn!("Failed to get display size: {}", err);
Expand Down

0 comments on commit 659001d

Please sign in to comment.