--- uae/src/xwin.c 2018/04/24 17:05:29 1.1.1.16 +++ uae/src/xwin.c 2018/04/24 17:12:23 1.1.1.18 @@ -35,6 +35,7 @@ #include "gui.h" #include "debug.h" #include "picasso96.h" +#include "inputdevice.h" #ifdef __cplusplus #define VI_CLASS c_class @@ -1800,13 +1801,10 @@ static void set_window_for_picasso (void if (current_width == picasso_vidinfo.width && current_height == picasso_vidinfo.height) return; + graphics_subshutdown (); current_width = picasso_vidinfo.width; current_height = picasso_vidinfo.height; - XResizeWindow (display, mywin, current_width, current_height); -#if defined USE_DGA_EXTENSION && defined USE_VIDMODE_EXTENSION - if (dgamode && vidmodeavail) - switch_to_best_mode (); -#endif + graphics_subinit (); } void gfx_set_picasso_modeinfo (int w, int h, int depth, int rgbfmt)