static void sdl_resize(DisplayState *ds, int w, int h)

{

    int flags;



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



    flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    flags |= SDL_RESIZABLE;

    if (gui_fullscreen)

        flags |= SDL_FULLSCREEN;

    screen = SDL_SetVideoMode(w, h, 0, flags);

    if (!screen) {

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

        exit(1);

    }

    ds->data = screen->pixels;

    ds->linesize = screen->pitch;

    ds->depth = screen->format->BitsPerPixel;

    ds->width = w;

    ds->height = h;

}

static void sdl_resize(DisplayState *ds, int w, int h)

{

    int flags;



    



    flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    flags |= SDL_RESIZABLE;

    if (gui_fullscreen)

        flags |= SDL_FULLSCREEN;

    screen = SDL_SetVideoMode(w, h, 0, flags);

    if (!screen) {

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

        exit(1);

    }

    ds->data = screen->pixels;

    ds->linesize = screen->pitch;

    ds->depth = screen->format->BitsPerPixel;

    ds->width = w;

    ds->height = h;

}

static void FUNC_0(DisplayState *VAR_0, int VAR_1, int VAR_2)

{

    int VAR_3;



    



    VAR_3 = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL;

    VAR_3 |= SDL_RESIZABLE;

    if (gui_fullscreen)

        VAR_3 |= SDL_FULLSCREEN;

    screen = SDL_SetVideoMode(VAR_1, VAR_2, 0, VAR_3);

    if (!screen) {

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

        exit(1);

    }

    VAR_0->data = screen->pixels;

    VAR_0->linesize = screen->pitch;

    VAR_0->depth = screen->format->BitsPerPixel;

    VAR_0->width = VAR_1;

    VAR_0->height = VAR_2;

}

static void FUNC_0(DisplayState *VAR_0, int VAR_1, int VAR_2)
{ int VAR_3; VAR_3 = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL; VAR_3 |= SDL_RESIZABLE; if (gui_fullscreen)
VAR_3 |= SDL_FULLSCREEN; screen = SDL_SetVideoMode(VAR_1, VAR_2, 0, VAR_3); if (!screen) { fprintf(stderr, "Could not open SDL display\n"); exit(1); } VAR_0->data = screen->pixels; VAR_0->linesize = screen->pitch; VAR_0->depth = screen->format->BitsPerPixel; VAR_0->width = VAR_1; VAR_0->height = VAR_2; }