mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
test: Moved some Uint32
bitfields over to typedefs.
Reference Issue #9812.
This commit is contained in:
parent
0f0570b060
commit
13b18e3c41
2 changed files with 5 additions and 4 deletions
|
@ -45,6 +45,7 @@
|
||||||
#define DEFAULT_WINDOW_HEIGHT 480
|
#define DEFAULT_WINDOW_HEIGHT 480
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef Uint32 SDLTest_VerboseFlags;
|
||||||
#define VERBOSE_VIDEO 0x00000001
|
#define VERBOSE_VIDEO 0x00000001
|
||||||
#define VERBOSE_MODES 0x00000002
|
#define VERBOSE_MODES 0x00000002
|
||||||
#define VERBOSE_RENDER 0x00000004
|
#define VERBOSE_RENDER 0x00000004
|
||||||
|
@ -56,8 +57,8 @@ typedef struct
|
||||||
{
|
{
|
||||||
/* SDL init flags */
|
/* SDL init flags */
|
||||||
char **argv;
|
char **argv;
|
||||||
Uint32 flags;
|
SDL_InitFlags flags;
|
||||||
Uint32 verbose;
|
SDLTest_VerboseFlags verbose;
|
||||||
|
|
||||||
/* Video info */
|
/* Video info */
|
||||||
const char *videodriver;
|
const char *videodriver;
|
||||||
|
@ -147,7 +148,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* \returns a newly allocated common state object.
|
* \returns a newly allocated common state object.
|
||||||
*/
|
*/
|
||||||
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags);
|
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, SDL_InitFlags flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Free the common state object.
|
* Free the common state object.
|
||||||
|
|
|
@ -88,7 +88,7 @@ static void SDL_snprintfcat(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags)
|
SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, SDL_InitFlags flags)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
SDLTest_CommonState *state;
|
SDLTest_CommonState *state;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue