mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
only push menu when opening game to display it
This commit is contained in:
parent
e9882b45da
commit
c44268290f
1 changed files with 2 additions and 2 deletions
|
@ -81,6 +81,7 @@ static void enableDraw( CursesBoardGlobals* bGlobals, const cb_dims* dims );
|
||||||
static CursesBoardGlobals* ref( CursesBoardGlobals* bGlobals );
|
static CursesBoardGlobals* ref( CursesBoardGlobals* bGlobals );
|
||||||
static void unref( CursesBoardGlobals* bGlobals );
|
static void unref( CursesBoardGlobals* bGlobals );
|
||||||
static void setupBoard( CursesBoardGlobals* bGlobals );
|
static void setupBoard( CursesBoardGlobals* bGlobals );
|
||||||
|
static void initMenus( CursesBoardGlobals* bGlobals );
|
||||||
|
|
||||||
CursesBoardState*
|
CursesBoardState*
|
||||||
cb_init( CursesAppGlobals* aGlobals, LaunchParams* params,
|
cb_init( CursesAppGlobals* aGlobals, LaunchParams* params,
|
||||||
|
@ -99,6 +100,7 @@ cb_open( CursesBoardState* cbState, sqlite3_int64 rowid, const cb_dims* dims )
|
||||||
{
|
{
|
||||||
LOG_FUNC();
|
LOG_FUNC();
|
||||||
CursesBoardGlobals* bGlobals = findOrOpen( cbState, rowid, NULL, NULL );
|
CursesBoardGlobals* bGlobals = findOrOpen( cbState, rowid, NULL, NULL );
|
||||||
|
initMenus( bGlobals );
|
||||||
enableDraw( bGlobals, dims );
|
enableDraw( bGlobals, dims );
|
||||||
setupBoard( bGlobals );
|
setupBoard( bGlobals );
|
||||||
|
|
||||||
|
@ -555,8 +557,6 @@ initNoDraw( CursesBoardState* cbState, sqlite3_int64 rowid,
|
||||||
cGlobals->cp.robotTradePct = params->robotTradePct;
|
cGlobals->cp.robotTradePct = params->robotTradePct;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
initMenus( result );
|
|
||||||
|
|
||||||
if ( linuxOpenGame( cGlobals, &result->procs, addr ) ) {
|
if ( linuxOpenGame( cGlobals, &result->procs, addr ) ) {
|
||||||
result = ref( result );
|
result = ref( result );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue