mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +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) );
|
memset( globals, 0, sizeof(*globals) );
|
||||||
|
|
||||||
|
globals->cGlobals.gi = &globals->gi;
|
||||||
gi_copy( MPPARM(params->mpool) globals->cGlobals.gi, ¶ms->pgi );
|
gi_copy( MPPARM(params->mpool) globals->cGlobals.gi, ¶ms->pgi );
|
||||||
|
|
||||||
globals->cGlobals.params = params;
|
globals->cGlobals.params = params;
|
||||||
|
|
|
@ -86,6 +86,7 @@ typedef struct ClientStreamRec {
|
||||||
|
|
||||||
typedef struct GtkGameGlobals {
|
typedef struct GtkGameGlobals {
|
||||||
CommonGlobals cGlobals;
|
CommonGlobals cGlobals;
|
||||||
|
CurGameInfo gi;
|
||||||
GtkWidget* window;
|
GtkWidget* window;
|
||||||
GtkDrawCtx* draw;
|
GtkDrawCtx* draw;
|
||||||
GtkAppGlobals* apg;
|
GtkAppGlobals* apg;
|
||||||
|
|
Loading…
Reference in a new issue