Skip to content

Commit 54763da

Browse files
mkroeningiceiix
authored andcommitted
Get scale_factor from window instead of monitor
Fixes #316
1 parent a6bff21 commit 54763da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ fn main2() {
276276
}
277277

278278
let textures = renderer.get_textures();
279-
let dpi_factor = window.window().current_monitor().scale_factor();
279+
let dpi_factor = window.window().scale_factor();
280280
let default_protocol_version = protocol::versions::protocol_name_to_protocol_version(
281281
opt.default_protocol_version.unwrap_or("".to_string()));
282282
let mut game = Game {

0 commit comments

Comments
 (0)