mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 07:20:48 +00:00
rwops: Rename everything from SDL_RWxxx to SDL_XxxRW.
This commit is contained in:
parent
655ceb3b31
commit
7d4d8ccde0
18 changed files with 271 additions and 226 deletions
|
@ -1904,10 +1904,10 @@ static const void *SDLTest_ScreenShotClipboardProvider(void *context, const char
|
|||
|
||||
file = SDL_RWFromFile(SCREENSHOT_FILE, "r");
|
||||
if (file) {
|
||||
size_t length = (size_t)SDL_RWsize(file);
|
||||
size_t length = (size_t)SDL_SizeRW(file);
|
||||
void *image = SDL_malloc(length);
|
||||
if (image) {
|
||||
if (SDL_RWread(file, image, length) != length) {
|
||||
if (SDL_ReadRW(file, image, length) != length) {
|
||||
SDL_Log("Couldn't read %s: %s\n", SCREENSHOT_FILE, SDL_GetError());
|
||||
SDL_free(image);
|
||||
image = NULL;
|
||||
|
@ -1983,7 +1983,7 @@ static void SDLTest_PasteScreenShot(void)
|
|||
file = SDL_RWFromFile(filename, "w");
|
||||
if (file) {
|
||||
SDL_Log("Writing clipboard image to %s", filename);
|
||||
SDL_RWwrite(file, data, size);
|
||||
SDL_WriteRW(file, data, size);
|
||||
SDL_CloseRW(file);
|
||||
}
|
||||
SDL_free(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue