-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef HAVE_WINDOWS_H
-# include <windows.h>
-#endif
-#include <stdlib.h>
-#include <string.h>
-#include <Aircraft/aircraft.hxx>
-#include <GUI/gui.h>
-#include <Include/fg_constants.h>
-#include <Math/fg_random.h>
-#include <Math/mat3.h>
-#include <Math/polar3d.hxx>
-#include <Scenery/scenery.hxx>
-#include <Time/fg_timer.hxx>
-#define textString( x , y, text, font ) TextString( text, x , y )
+#define textString( x , y, text, digit ) TextString( text, x , y,digit ) //suma
-#define textString( x , y, text, font ) puDrawString ( guiFnt, text, x, y );
+#define textString( x , y, text, digit ) puDrawString ( guiFnt, text, x, y ); //suma
instr_item( x, y, width, height,
instr_item( x, y, width, height,
- data_source, scale_data,options, working ),
+ data_source, scale_data,options, working,digit), //suma
pformat ( label_format ),
pre_str ( pre_label_string ),
post_str ( post_label_string ),
pformat ( label_format ),
pre_str ( pre_label_string ),
post_str ( post_label_string ),
- sprintf( label_buffer, format_buffer, coord_format_lat(lat) );
+// sprintf( label_buffer, format_buffer, coord_format_lat(lat) );
+ sprintf( label_buffer, format_buffer,
+ coord_format_lat( get_value()) );
- fgPrintf( FG_COCKPIT, FG_DEBUG, format_buffer );
- fgPrintf( FG_COCKPIT, FG_DEBUG, "\n" );
- fgPrintf( FG_COCKPIT, FG_DEBUG, label_buffer );
- fgPrintf( FG_COCKPIT, FG_DEBUG, "\n" );
+ fgPrintf( SG_COCKPIT, SG_DEBUG, format_buffer );
+ fgPrintf( SG_COCKPIT, SG_DEBUG, "\n" );
+ fgPrintf( SG_COCKPIT, SG_DEBUG, label_buffer );
+ fgPrintf( SG_COCKPIT, SG_DEBUG, "\n" );
if( justify == RIGHT_JUST ) {
posincr = scrn_rect.right - lenstr;
}else if( justify == CENTER_JUST ) {
if( justify == RIGHT_JUST ) {
posincr = scrn_rect.right - lenstr;
}else if( justify == CENTER_JUST ) {