Use drawable_size instead of size for rendering

This commit is contained in:
Thinkofname 2016-04-05 12:43:38 +01:00
parent 2ce2155032
commit 715b0cb1ee
1 changed files with 1 additions and 1 deletions

View File

@ -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);