Skip to content

Commit

Permalink
Fix HDPI scale/offset: Revert "Use drawable_size instead of size for …
Browse files Browse the repository at this point in the history
…rendering"

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 748911a commit 1854275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -221,7 +221,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 1854275

Please sign in to comment.