Oh yeah, they're boolean values...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402458
This commit is contained in:
Sam Lantinga 2007-07-10 05:29:56 +00:00
parent 1330dc92d3
commit e7c690e52e
2 changed files with 4 additions and 3 deletions

View File

@ -115,7 +115,8 @@ extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
const char *mode);
#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
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);

View File

@ -124,7 +124,7 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode)
return -2; /* failed (CreateFile) */
}
context->hidden.win32io.h = h;
context->hidden.win32io.append = a_mode;
context->hidden.win32io.append = a_mode ? SDL_TRUE : SDL_FALSE;
return 0; /* ok */
}
@ -455,7 +455,7 @@ SDL_RWFromFile(const char *file, const char *mode)
#ifdef HAVE_STDIO_H
SDL_RWops *
SDL_RWFromFP(FILE * fp, int autoclose)
SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
{
SDL_RWops *rwops = NULL;