Skip to content

Commit

Permalink
Moved back from f64 to u32 in ScreenDimensions's new method
Browse files Browse the repository at this point in the history
  • Loading branch information
AnneKitsune committed Dec 5, 2018
1 parent 87d59c3 commit 26235cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amethyst_renderer/src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ pub struct ScreenDimensions {

impl ScreenDimensions {
/// Creates a new screen dimensions object with the given width and height.
pub fn new(w: f64, h: f64, hidpi: f64) -> Self {
pub fn new(w: u32, h: u32, hidpi: f64) -> Self {
ScreenDimensions {
w,
h,
w: w as f64,
h: h as f64,
aspect_ratio: w as f32 / h as f32,
hidpi,
dirty: false,
Expand Down

0 comments on commit 26235cd

Please sign in to comment.