diff --git a/src/sdl3/surface.rs b/src/sdl3/surface.rs index db39cfe096..2102dc3cd7 100644 --- a/src/sdl3/surface.rs +++ b/src/sdl3/surface.rs @@ -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(()) @@ -453,7 +453,7 @@ impl SurfaceRef { } pub fn save_bmp>(&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) }