Description: make sure preview is initialized, and reset game before starting draw_preview is called before the surfaces are ready; bail out early if this is the case. At that point, the game also hasn't been reset yet, so do that too. Author: Carey Underwood Bug-Ubuntu: https://launchpad.net/bugs/995281 --- gnome-games-3.4.1.orig/glines/src/glines.c +++ gnome-games-3.4.1/glines/src/glines.c @@ -439,6 +439,9 @@ draw_preview (void) { guint i; cairo_pattern_t *pattern; + if (preview[0] == 0) + init_preview(); for (i = 0; i < MAXNPIECES; i++) { @@ -1614,6 +1617,7 @@ main (int argc, char *argv[]) gtk_widget_show_all (app); + reset_game (); start_game (); /* Enter the event loop */