Skip to content

Commit

Permalink
Removed aspect from draw background immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
wod3 committed Jul 3, 2020
1 parent 0f0d3f8 commit 45fb7af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/game_state.rs
Expand Up @@ -209,7 +209,6 @@ impl LevelPlayer {

graphics.draw_background_immediate(
surface,
aspect,
[-1.0, -1.0, 2.0, 2.0],
UVCoords {
left: -100.0 * aspect,
Expand Down
2 changes: 1 addition & 1 deletion src/graphics.rs
Expand Up @@ -84,7 +84,7 @@ impl Graphics {
// ).unwrap();
// }

pub fn draw_background_immediate(&self, surface: &mut impl Surface, aspect: f32, rect: [f32; 4], uv: UVCoords, time: f32) {
pub fn draw_background_immediate(&self, surface: &mut impl Surface, rect: [f32; 4], uv: UVCoords, time: f32) {
let vertices = VertexBuffer::new(&self.display,
&[BackgroundVertex {
position: [rect[0], rect[1], 1.0],
Expand Down

0 comments on commit 45fb7af

Please sign in to comment.