Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed not needed SDL_WINDOW_SHOWN from test programs.
Browse files Browse the repository at this point in the history
See bug #1667.
  • Loading branch information
philippwiesemann committed Jul 20, 2013
1 parent d7ca1b8 commit 1b700da
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/testgamecontroller.c
Expand Up @@ -105,7 +105,7 @@ WatchGameController(SDL_GameController * gamecontroller)
/* Create a window to display controller axis position */
window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
SCREEN_HEIGHT, 0);
if (window == NULL) {
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
return;
Expand Down
2 changes: 1 addition & 1 deletion test/testjoystick.c
Expand Up @@ -50,7 +50,7 @@ WatchJoystick(SDL_Joystick * joystick)
/* Create a window to display joystick axis position */
window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
SCREEN_HEIGHT, 0);
if (window == NULL) {
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
return SDL_FALSE;
Expand Down
2 changes: 1 addition & 1 deletion test/testmessage.c
Expand Up @@ -159,7 +159,7 @@ main(int argc, char *argv[])
/* Test showing a message box with a parent window */
{
SDL_Event event;
SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN);
SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);

success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
"Simple MessageBox",
Expand Down
2 changes: 1 addition & 1 deletion test/testoverlay2.c
Expand Up @@ -496,7 +496,7 @@ main(int argc, char **argv)
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
window_w, window_h,
SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
SDL_WINDOW_RESIZABLE);
if (!window) {
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
free(RawMooseData);
Expand Down
2 changes: 1 addition & 1 deletion test/testshape.c
Expand Up @@ -106,7 +106,7 @@ int main(int argc,char** argv)
}
}

window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN);
window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE);
if(window == NULL) {
for(i=0;i<num_pictures;i++)
SDL_FreeSurface(pictures[i].surface);
Expand Down
2 changes: 1 addition & 1 deletion test/teststreaming.c
Expand Up @@ -113,7 +113,7 @@ main(int argc, char **argv)
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
MOOSEPIC_W*4, MOOSEPIC_H*4,
SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
SDL_WINDOW_RESIZABLE);
if (!window) {
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
quit(3);
Expand Down

0 comments on commit 1b700da

Please sign in to comment.