fix so gtk mode works too by providing storage for CurGameInfo

This commit is contained in:
Eric House 2013-07-09 18:19:22 -07:00
parent 5a20cc282c
commit 4bde445c48
2 changed files with 2 additions and 0 deletions

View file

@ -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, &params->pgi ); gi_copy( MPPARM(params->mpool) globals->cGlobals.gi, &params->pgi );
globals->cGlobals.params = params; globals->cGlobals.params = params;

View file

@ -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;