Commit e7c690e5 authored by Sam Lantinga's avatar Sam Lantinga

Oh yeah, they're boolean values...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402458
parent 1330dc92
...@@ -115,7 +115,8 @@ extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file, ...@@ -115,7 +115,8 @@ extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
const char *mode); const char *mode);
#ifdef HAVE_STDIO_H #ifdef HAVE_STDIO_H
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp, int autoclose); extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
SDL_bool autoclose);
#endif #endif
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size); extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);
......
...@@ -124,7 +124,7 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode) ...@@ -124,7 +124,7 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode)
return -2; /* failed (CreateFile) */ return -2; /* failed (CreateFile) */
} }
context->hidden.win32io.h = h; context->hidden.win32io.h = h;
context->hidden.win32io.append = a_mode; context->hidden.win32io.append = a_mode ? SDL_TRUE : SDL_FALSE;
return 0; /* ok */ return 0; /* ok */
} }
...@@ -455,7 +455,7 @@ SDL_RWFromFile(const char *file, const char *mode) ...@@ -455,7 +455,7 @@ SDL_RWFromFile(const char *file, const char *mode)
#ifdef HAVE_STDIO_H #ifdef HAVE_STDIO_H
SDL_RWops * SDL_RWops *
SDL_RWFromFP(FILE * fp, int autoclose) SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
{ {
SDL_RWops *rwops = NULL; SDL_RWops *rwops = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment