static void sdl_resize(DisplayState *ds)

{

    int flags;



    //    printf("resizing to %d %d\n", w, h);



    flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    if (gui_fullscreen)

        flags |= SDL_FULLSCREEN;

    if (gui_noframe)

        flags |= SDL_NOFRAME;



 again:

    real_screen = SDL_SetVideoMode(ds_get_width(ds), ds_get_height(ds), 0, flags);

    if (!real_screen) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }

    if (!real_screen->pixels && (flags & SDL_HWSURFACE) && (flags & SDL_FULLSCREEN)) {

        flags &= ~SDL_HWSURFACE;

        goto again;

    }



    if (!real_screen->pixels) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }



    sdl_setdata(ds);

}

static void sdl_resize(DisplayState *ds)

{

    int flags;



    



    flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    if (gui_fullscreen)

        flags |= SDL_FULLSCREEN;

    if (gui_noframe)

        flags |= SDL_NOFRAME;



 again:

    real_screen = SDL_SetVideoMode(ds_get_width(ds), ds_get_height(ds), 0, flags);

    if (!real_screen) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }

    if (!real_screen->pixels && (flags & SDL_HWSURFACE) && (flags & SDL_FULLSCREEN)) {

        flags &= ~SDL_HWSURFACE;

        goto again;

    }



    if (!real_screen->pixels) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }



    sdl_setdata(ds);

}

static void FUNC_0(DisplayState *VAR_0)

{

    int VAR_1;



    



    VAR_1 = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    if (gui_fullscreen)

        VAR_1 |= SDL_FULLSCREEN;

    if (gui_noframe)

        VAR_1 |= SDL_NOFRAME;



 again:

    real_screen = SDL_SetVideoMode(ds_get_width(VAR_0), ds_get_height(VAR_0), 0, VAR_1);

    if (!real_screen) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }

    if (!real_screen->pixels && (VAR_1 & SDL_HWSURFACE) && (VAR_1 & SDL_FULLSCREEN)) {

        VAR_1 &= ~SDL_HWSURFACE;

        goto again;

    }



    if (!real_screen->pixels) {

        fprintf(stderr, "Could not open SDL display\n");

        exit(1);

    }



    sdl_setdata(VAR_0);

}

static void FUNC_0(DisplayState *VAR_0)
{ int VAR_1; VAR_1 = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL; if (gui_fullscreen)
VAR_1 |= SDL_FULLSCREEN; if (gui_noframe)
VAR_1 |= SDL_NOFRAME; again:
real_screen = SDL_SetVideoMode(ds_get_width(VAR_0), ds_get_height(VAR_0), 0, VAR_1); if (!real_screen) { fprintf(stderr, "Could not open SDL display\n"); exit(1); } if (!real_screen->pixels && (VAR_1 & SDL_HWSURFACE) && (VAR_1 & SDL_FULLSCREEN)) { VAR_1 &= ~SDL_HWSURFACE; goto again; } if (!real_screen->pixels) { fprintf(stderr, "Could not open SDL display\n"); exit(1); } sdl_setdata(VAR_0); }