*** gnubg/gnubg.c Thu Apr 8 08:24:50 2004 --- ../gnubg.c Fri Apr 9 13:18:12 2004 *************** *** 4258,4264 **** } #if USE_BOARD3D ! if ((bd->rd->fDisplayType == DT_3D) && fX) { /* Stop any 3d animations */ StopIdle3d(bd); } --- 4258,4264 ---- } #if USE_BOARD3D ! if (fX && (bd->rd->fDisplayType == DT_3D)) { /* Stop any 3d animations */ StopIdle3d(bd); } *************** *** 4267,4274 **** playSound ( SOUND_EXIT ); #if USE_BOARD3D ! if (bd->rd->fDisplayType == DT_3D && bd->rd->closeBoardOnExit ! && bd->rd->fHinges3d && fX) CloseBoard3d(bd); #endif #if USE_GTK --- 4267,4274 ---- playSound ( SOUND_EXIT ); #if USE_BOARD3D ! if (fX && bd->rd->fDisplayType == DT_3D && bd->rd->closeBoardOnExit ! && bd->rd->fHinges3d) CloseBoard3d(bd); #endif #if USE_GTK *************** *** 7707,7713 **** if( fX ) #if USE_GTK fX = InitGTK( &argc, &argv ); ! #else if( !getenv( "DISPLAY" ) ) fX = FALSE; #endif /* ! USE_GTK */ --- 7707,7713 ---- if( fX ) #if USE_GTK fX = InitGTK( &argc, &argv ); ! if( !getenv( "DISPLAY" ) ) fX = FALSE; #endif /* ! USE_GTK */ *************** *** 8078,8089 **** --- 8078,8091 ---- #endif #if USE_BOARD3D { + if (fX) { BoardData* bd = BOARD(pwBoard)->board_data; /* If using 3d board initilize 3d widget */ if (bd->rd->fDisplayType == DT_3D) Init3d(); /* If no 3d settings loaded, set appearance to first design */ Default3dSettings(bd); + } } #endif