Update of /cvsroot/playerstage/code/stage/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6336/src
Modified Files:
model_ptz.c p_driver.cc
Log Message:
fixed ptz and graphics2d behavior when gui_disable is on
Index: p_driver.cc
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/p_driver.cc,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** p_driver.cc 11 Sep 2007 20:39:51 -0000 1.42
--- p_driver.cc 11 Dec 2007 23:23:48 -0000 1.43
***************
*** 299,302 ****
--- 299,304 ----
unsigned int StgDriver::instance_count = 0;
+ extern int _stg_disable_gui;
+
// Constructor. Retrieve options from the configuration file and do any
// pre-Setup() setup.
***************
*** 382,387 ****
case PLAYER_GRAPHICS2D_CODE:
! ifsrc = new InterfaceGraphics2d( player_addr, this, cf, section );
! break;
case PLAYER_GRIPPER_CODE:
--- 384,397 ----
case PLAYER_GRAPHICS2D_CODE:
! if(_stg_disable_gui)
! {
! PLAYER_WARN("Stage graphics2d interface disabled when not running
GUI");
! continue;
! }
! else
! {
! ifsrc = new InterfaceGraphics2d( player_addr, this, cf, section
);
! break;
! }
case PLAYER_GRIPPER_CODE:
Index: model_ptz.c
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/model_ptz.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** model_ptz.c 5 Sep 2007 19:01:43 -0000 1.4
--- model_ptz.c 11 Dec 2007 23:23:48 -0000 1.5
***************
*** 89,92 ****
--- 89,94 ----
int ptz_unrender_cfg( stg_model_t* mod, void* userp );
+ extern int _stg_disable_gui;
+
int ptz_init( stg_model_t* mod )
{
***************
*** 125,129 ****
stg_model_set_data( mod, &data, sizeof(data) );
! stg_model_add_callback( mod, &mod->data, ptz_render_data, NULL );
return 0; //ok
--- 127,132 ----
stg_model_set_data( mod, &data, sizeof(data) );
! if(!_stg_disable_gui)
! stg_model_add_callback( mod, &mod->data, ptz_render_data, NULL );
return 0; //ok
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit