mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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;
|
XP_U16 fontWidth = width / curBoard->gi->boardSize;
|
||||||
board_figureLayout( newBoard, curBoard->gi, 0, 0, width, height,
|
board_figureLayout( newBoard, curBoard->gi, 0, 0, width, height,
|
||||||
0, 0, 0, fontWidth, width, XP_FALSE, NULL );
|
0, 0, 0, fontWidth, width, XP_FALSE, NULL );
|
||||||
|
|
||||||
|
newBoard->showColors = curBoard->showColors;
|
||||||
|
newBoard->showGrid = curBoard->showGrid;
|
||||||
|
|
||||||
board_draw( newBoard );
|
board_draw( newBoard );
|
||||||
board_destroy( newBoard );
|
board_destroy( newBoard );
|
||||||
}
|
}
|
||||||
|
|
|
@ -699,6 +699,7 @@ static gboolean
|
||||||
configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
|
configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
|
||||||
GtkGameGlobals* globals )
|
GtkGameGlobals* globals )
|
||||||
{
|
{
|
||||||
|
globals->gridOn = XP_TRUE;
|
||||||
if ( globals->draw == NULL ) {
|
if ( globals->draw == NULL ) {
|
||||||
createOrLoadObjects( globals );
|
createOrLoadObjects( globals );
|
||||||
}
|
}
|
||||||
|
@ -800,7 +801,6 @@ configure_event( GtkWidget* widget, GdkEventConfigure* XP_UNUSED(event),
|
||||||
GTK_DIVIDER_WIDTH );
|
GTK_DIVIDER_WIDTH );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
globals->gridOn = XP_TRUE;
|
|
||||||
|
|
||||||
setCtrlsForTray( globals );
|
setCtrlsForTray( globals );
|
||||||
board_invalAll( board );
|
board_invalAll( board );
|
||||||
|
@ -821,7 +821,6 @@ destroy_board_window( GtkWidget* XP_UNUSED(widget), GtkGameGlobals* globals )
|
||||||
}
|
}
|
||||||
saveGame( &globals->cGlobals );
|
saveGame( &globals->cGlobals );
|
||||||
windowDestroyed( globals );
|
windowDestroyed( globals );
|
||||||
// gtk_main_quit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue