Skip to content

Commit

Permalink
Merge pull request #682 from Vlad2001MFS/fix_453_invalid_editor_windo…
Browse files Browse the repository at this point in the history
…w_size_hidpi

fix an invalid editor window size on second startup at the hidpi display
  • Loading branch information
mrDIMAS authored Oct 7, 2024
2 parents 1b886ca + 3e066c3 commit 4c94fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ use crate::{
watcher::FileSystemWatcher,
TypeUuidProvider,
},
dpi::{LogicalSize, PhysicalPosition},
dpi::{PhysicalPosition, PhysicalSize},
engine::{Engine, EngineInitParams, GraphicsContextParams, SerializationContext},
event::{Event, WindowEvent},
event_loop::{EventLoop, EventLoopWindowTarget},
Expand Down Expand Up @@ -561,7 +561,7 @@ impl Editor {
)),
}

let inner_size = LogicalSize::new(
let inner_size = PhysicalSize::new(
settings.windows.window_size.x,
settings.windows.window_size.y,
);
Expand Down

0 comments on commit 4c94fc5

Please sign in to comment.