# HG changeset patch # User John Tsiombikas # Date 1509310421 -7200 # Node ID 5614fbb9c1debc87309b82a3f5839519aad4c202 # Parent 01bd8bbc46d4b7fa5ee964d5d83b30302eee1eef Backed out changeset 01bd8bbc46d4 diff -r 01bd8bbc46d4 -r 5614fbb9c1de src/sdl/gfx.c --- a/src/sdl/gfx.c Sun Oct 29 21:56:28 2017 +0200 +++ b/src/sdl/gfx.c Sun Oct 29 22:53:41 2017 +0200 @@ -8,8 +8,6 @@ static int fb_width, fb_height; static int num_bitplanes; static int init_flags; -static unsigned char *amigafb; -static unsigned char *bplptr[6]; int gfx_init(int nbpl, unsigned int flags) @@ -30,13 +28,6 @@ } SDL_WM_SetCaption("imgv SDL version", 0); - if(gfx_set_framebuffer(0, fb_width, fb_height) == -1) { - fprintf(stderr, "failed to create %dx%d/%d bitplane amiga framebuffer\n", - fb_width, fb_height, nbpl); - SDL_Quit(); - return -1; - } - return 0; } @@ -59,8 +50,7 @@ void *gfx_set_framebuffer(void *fb, int width, int height) { - fb_width = width; - fb_height = height; + return 0; } void *gfx_get_framebuffer(void)