Skip to content

Commit

Permalink
Use drawable_size instead of size for rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkofname committed Apr 5, 2016
1 parent 2ce2155 commit 715b0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -230,7 +230,7 @@ fn main() {
let diff = now - last_frame;
last_frame = now;
let delta = (diff.num_nanoseconds().unwrap() as f64) / frame_time;
let (width, height) = window.size();
let (width, height) = window.drawable_size();

game.tick(delta);
game.server.tick(&mut game.renderer, delta);
Expand Down

0 comments on commit 715b0cb

Please sign in to comment.