--- uae/src/svga.c 2018/04/24 16:46:14 1.1.1.7 +++ uae/src/svga.c 2018/04/24 16:47:27 1.1.1.8 @@ -474,10 +474,11 @@ static int post_enter_graphics (void) static int enter_graphics_mode (int which) { int oldmode = current_vgamode; + vga_setmode (TEXT); if (vga_setmode (which) < 0) { sleep(1); vga_setmode (TEXT); - fprintf (stderr, "SVGAlib doesn't like my video mode. Giving up.\n"); + fprintf (stderr, "SVGAlib doesn't like my video mode (%d). Giving up.\n", which); return 0; } current_vgamode = which; @@ -509,10 +510,11 @@ static int enter_graphics_mode_picasso ( if (which == oldmode) return 1; + vga_setmode (TEXT); if (vga_setmode (which) < 0) { sleep (1); vga_setmode (TEXT); - fprintf (stderr, "SVGAlib doesn't like my video mode. Giving up.\n"); + fprintf (stderr, "SVGAlib doesn't like my video mode (%d). Giving up.\n", which); exit (1); } current_vgamode = which;