Update of /cvsroot/playerstage/code/player/utils/playerv
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25524/utils/playerv

Modified Files:
        dev_ranger.c 
Log Message:
Changes to ranger interface (moving some properties to messages).


Index: dev_ranger.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/utils/playerv/dev_ranger.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dev_ranger.c        20 May 2007 00:30:15 -0000      1.1
--- dev_ranger.c        17 Jun 2007 00:28:02 -0000      1.2
***************
*** 117,125 ****
          PRINT_ERR1("libplayerc error: %s", playerc_error_str());
  
!       // Try to get the min_angle and resolution properties (don't care if 
can't get them)
!       if (playerc_device_get_dblprop(&ranger->proxy->info, "min_angle", 
&ranger->start_angle) != 0)
          ranger->start_angle = 0.0f;
-       if (playerc_device_get_dblprop(&ranger->proxy->info, "resolution", 
&ranger->resolution) != 0)
          ranger->resolution = 0.0f;
  
        // Delete any current figures
--- 117,132 ----
          PRINT_ERR1("libplayerc error: %s", playerc_error_str());
  
!       // Request the device config for min angle and resolution
!       if (playerc_ranger_get_config(ranger->proxy, NULL, NULL, NULL, NULL, 
NULL, NULL) != 0)
!       {
!         PRINT_ERR1("libplayerc error: %s", playerc_error_str());
          ranger->start_angle = 0.0f;
          ranger->resolution = 0.0f;
+       }
+       else
+       {
+         ranger->start_angle = ranger->proxy->min_angle;
+         ranger->resolution = ranger->proxy->resolution;
+       }
  
        // Delete any current figures


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to