parent
74e5c8cffd
commit
62c31ff5c3
6 changed files with 6 additions and 6 deletions
|
@ -105,7 +105,7 @@ WatchGameController(SDL_GameController * gamecontroller)
|
||||||
/* Create a window to display controller axis position */
|
/* Create a window to display controller axis position */
|
||||||
window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED,
|
window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED,
|
||||||
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
|
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
|
||||||
SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
|
SCREEN_HEIGHT, 0);
|
||||||
if (window == NULL) {
|
if (window == NULL) {
|
||||||
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
|
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -50,7 +50,7 @@ WatchJoystick(SDL_Joystick * joystick)
|
||||||
/* Create a window to display joystick axis position */
|
/* Create a window to display joystick axis position */
|
||||||
window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
|
window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
|
||||||
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
|
SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
|
||||||
SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
|
SCREEN_HEIGHT, 0);
|
||||||
if (window == NULL) {
|
if (window == NULL) {
|
||||||
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
|
fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
|
|
|
@ -159,7 +159,7 @@ main(int argc, char *argv[])
|
||||||
/* Test showing a message box with a parent window */
|
/* Test showing a message box with a parent window */
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
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,
|
success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||||
"Simple MessageBox",
|
"Simple MessageBox",
|
||||||
|
|
|
@ -496,7 +496,7 @@ main(int argc, char **argv)
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
window_w, window_h,
|
window_w, window_h,
|
||||||
SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
|
SDL_WINDOW_RESIZABLE);
|
||||||
if (!window) {
|
if (!window) {
|
||||||
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
|
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
|
||||||
free(RawMooseData);
|
free(RawMooseData);
|
||||||
|
|
|
@ -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) {
|
if(window == NULL) {
|
||||||
for(i=0;i<num_pictures;i++)
|
for(i=0;i<num_pictures;i++)
|
||||||
SDL_FreeSurface(pictures[i].surface);
|
SDL_FreeSurface(pictures[i].surface);
|
||||||
|
|
|
@ -113,7 +113,7 @@ main(int argc, char **argv)
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
SDL_WINDOWPOS_UNDEFINED,
|
SDL_WINDOWPOS_UNDEFINED,
|
||||||
MOOSEPIC_W*4, MOOSEPIC_H*4,
|
MOOSEPIC_W*4, MOOSEPIC_H*4,
|
||||||
SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
|
SDL_WINDOW_RESIZABLE);
|
||||||
if (!window) {
|
if (!window) {
|
||||||
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
|
fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
|
||||||
quit(3);
|
quit(3);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue