mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Added mut specifier for from_data
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ impl Surface {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_data(data: &[u8], width: int, height: int, bpp: int, pitch: int,
|
||||
pub fn from_data(data: &mut [u8], width: int, height: int, bpp: int, pitch: int,
|
||||
rmask: u32, gmask: u32, bmask: u32, amask: u32) -> SdlResult<Surface> {
|
||||
|
||||
unsafe {
|
||||
|
||||
Reference in New Issue
Block a user