copy more state into board being used for snapshot

This commit is contained in:
Eric House 2016-08-05 21:19:49 -07:00
parent a275730824
commit bf7a38da08
2 changed files with 5 additions and 2 deletions

View file

@ -408,6 +408,10 @@ board_drawSnapshot( const BoardCtxt* curBoard, DrawCtx* dctx,
XP_U16 fontWidth = width / curBoard->gi->boardSize;
board_figureLayout( newBoard, curBoard->gi, 0, 0, width, height,
0, 0, 0, fontWidth, width, XP_FALSE, NULL );
newBoard->showColors = curBoard->showColors;
newBoard->showGrid = curBoard->showGrid;
board_draw( newBoard );
board_destroy( newBoard );
}

View file

@ -699,6 +699,7 @@ static gboolean
configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
GtkGameGlobals* globals )
{
globals->gridOn = XP_TRUE;
if ( globals->draw == NULL ) {
createOrLoadObjects( globals );
}
@ -800,7 +801,6 @@ configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
GTK_DIVIDER_WIDTH );
#endif
globals->gridOn = XP_TRUE;
setCtrlsForTray( globals );
board_invalAll( board );
@ -821,7 +821,6 @@ destroy_board_window( GtkWidget* XP_UNUSED(widget), GtkGameGlobals* globals )
}
saveGame( &globals->cGlobals );
windowDestroyed( globals );
// gtk_main_quit();
}
static void