Open
Description
It uses SDL_CreateRGBSurfaceFrom
internally, whose first parameter is void*
, but I see no reason (nor documentation) why it should change the data. It's probably a good idea to make it take a &[u8]
instead of a &mut [u8]
, as that matches the expectation much better. If not, it should at least be documented why it needs mutable access.