simplify OpenRWops

This commit is contained in:
Glenn Maynard
2004-05-18 19:25:53 +00:00
parent abcbddcaa3
commit 2f8e09ce7d
3 changed files with 9 additions and 11 deletions
+2 -4
View File
@@ -1086,15 +1086,13 @@ int RWString_Close(struct SDL_RWops *context)
return 0;
}
SDL_RWops *OpenRWops( CString &sBuf )
void OpenRWops( SDL_RWops *rw, CString *sBuf )
{
SDL_RWops *rw = SDL_AllocRW();
rw->hidden.unknown.data1 = new RWString( &sBuf );
rw->hidden.unknown.data1 = new RWString( sBuf );
rw->seek = RWString_Seek;
rw->read = RWString_Read;
rw->write = RWString_Write;
rw->close = RWString_Close;
return rw;
}
SDL_Surface *mySDL_MakeDummySurface( int height, int width )