mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
fix so gtk mode works too by providing storage for CurGameInfo
This commit is contained in:
parent
5a20cc282c
commit
4bde445c48
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -86,6 +86,7 @@ typedef struct ClientStreamRec {
|
|||
|
||||
typedef struct GtkGameGlobals {
|
||||
CommonGlobals cGlobals;
|
||||
CurGameInfo gi;
|
||||
GtkWidget* window;
|
||||
GtkDrawCtx* draw;
|
||||
GtkAppGlobals* apg;
|
||||
|
|
Loading…
Reference in a new issue