From 4bde445c485dbd8819085afa0545ff25d86c2639 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 9 Jul 2013 18:19:22 -0700 Subject: [PATCH] fix so gtk mode works too by providing storage for CurGameInfo --- xwords4/linux/gtkboard.c | 1 + xwords4/linux/gtkboard.h | 1 + 2 files changed, 2 insertions(+) diff --git a/xwords4/linux/gtkboard.c b/xwords4/linux/gtkboard.c index b3e9b8c75..4c9f9308b 100644 --- a/xwords4/linux/gtkboard.c +++ b/xwords4/linux/gtkboard.c @@ -2415,6 +2415,7 @@ initGlobalsNoDraw( GtkGameGlobals* globals, LaunchParams* params ) { memset( globals, 0, sizeof(*globals) ); + globals->cGlobals.gi = &globals->gi; gi_copy( MPPARM(params->mpool) globals->cGlobals.gi, ¶ms->pgi ); globals->cGlobals.params = params; diff --git a/xwords4/linux/gtkboard.h b/xwords4/linux/gtkboard.h index 9fdfb8a62..927cbb677 100644 --- a/xwords4/linux/gtkboard.h +++ b/xwords4/linux/gtkboard.h @@ -86,6 +86,7 @@ typedef struct ClientStreamRec { typedef struct GtkGameGlobals { CommonGlobals cGlobals; + CurGameInfo gi; GtkWidget* window; GtkDrawCtx* draw; GtkAppGlobals* apg;