Skip to content

Commit

Permalink
Revert "Use drawable_size instead of size for rendering", fix HDPI sc…
Browse files Browse the repository at this point in the history
…aling/offset

Closes https://github.com/iceiix/steven/issues/22 Wrong GUI offsets on AMD Radeon R9 M295X

This reverts commit 715b0cb.
  • Loading branch information
iceiix committed Nov 19, 2018
1 parent e5278f6 commit 4f058c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -223,7 +223,7 @@ fn main() {
let diff = now.duration_since(last_frame);
last_frame = now;
let delta = (diff.subsec_nanos() as f64) / frame_time;
let (width, height) = window.drawable_size();
let (width, height) = window.size();

let version = {
let mut res = game.resource_manager.write().unwrap();
Expand Down

0 comments on commit 4f058c3

Please sign in to comment.