Skip to content

Commit

Permalink
revert argument types of Window::set_resolution method to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Jeffords committed Dec 7, 2020
1 parent 1d35220 commit 1b6d1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Window {
.push(WindowCommand::SetMaximized { maximized });
}

pub fn set_resolution(&mut self, width: f32, height: f32) {
pub fn set_resolution(&mut self, width: u32, height: u32) {
self.physical_width = (width as f64 * self.scale_factor) as u32;
self.physical_height = (height as f64 * self.scale_factor) as u32;
self.command_queue.push(WindowCommand::SetResolution {
Expand Down

0 comments on commit 1b6d1c4

Please sign in to comment.