mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
copy more state into board being used for snapshot
This commit is contained in:
parent
a275730824
commit
bf7a38da08
2 changed files with 5 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue