Skip to content

Commit

Permalink
Add Surface::rect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohq authored and Cobrand committed Feb 9, 2023
1 parent 819ab43 commit 0c4fb75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sdl2/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ impl SurfaceRef {
(self.width(), self.height())
}

/// Gets the rect of the surface.
pub fn rect(&self) -> Rect {
Rect::new(0, 0, self.width(), self.height())
}
Expand Down

0 comments on commit 0c4fb75

Please sign in to comment.