Skip to content

Commit

Permalink
RWOps -> IOStream
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Oct 19, 2024
1 parent d6a98a5 commit e0e02b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdl3/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl SurfaceRef {
}

#[doc(alias = "SDL_SaveBMP_RW")]
pub fn save_bmp_rw(&self, iostream: &mut Iostream) -> Result<(), String> {
pub fn save_bmp_rw(&self, iostream: &mut IOStream) -> Result<(), String> {
let ret = unsafe { sys::SDL_SaveBMP_RW(self.raw(), iostream.raw(), 0) };
if ret == 0 {
Ok(())
Expand All @@ -453,7 +453,7 @@ impl SurfaceRef {
}

pub fn save_bmp<P: AsRef<Path>>(&self, path: P) -> Result<(), String> {
let mut file = Iostream::from_file(path, "wb")?;
let mut file = IOStream::from_file(path, "wb")?;
self.save_bmp_rw(&mut file)
}

Expand Down

0 comments on commit e0e02b8

Please sign in to comment.