Skip to content

Commit

Permalink
fix an invalid editor window size on second startup at the hidpi display
Browse files Browse the repository at this point in the history
Probably was broken in the 811a134 commit for the #453 issue, but issue still not fixed.

The window_size field is used as the PhysicalSize in all other cases.
  • Loading branch information
Vlad2001MFS committed Oct 7, 2024
1 parent 41295cf commit 3e066c3
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 3e066c3

Please sign in to comment.