X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fhud_lat.cxx;h=e9e6a45203e7d6e8388c8623bbcea2d0c7082d97;hb=b9e866cfdd765cc742a6c9b3e35c8a9c1ca08dfc;hp=4d57a6deb3cd5884c91cce404c8318270c8477e0;hpb=182fd42b4017fa54d680508c092ea1b216398a00;p=flightgear.git diff --git a/src/Cockpit/hud_lat.cxx b/src/Cockpit/hud_lat.cxx index 4d57a6deb..e9e6a4520 100644 --- a/src/Cockpit/hud_lat.cxx +++ b/src/Cockpit/hud_lat.cxx @@ -3,9 +3,9 @@ #ifdef USE_HUD_TextList -#define textString( x , y, text, font ) TextString( text, x , y ) +#define textString( x , y, text, font,digit ) TextString( text, x , y,digit ) //suma #else -#define textString( x , y, text, font ) puDrawString ( guiFnt, text, x, y ); +#define textString( x , y, text, font,digit ) puDrawString ( guiFnt, text, x, y ); //suma #endif //======================= Top of instr_label class ========================= @@ -23,9 +23,10 @@ lat_label :: fgLabelJust justification, int font_size, int blinking, - bool working ): + bool working , + int digit): //suma 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 ), @@ -137,12 +138,12 @@ draw( void ) // Required method in base class if( fontSize == SMALL ) { textString( scrn_rect.left + posincr, scrn_rect.top, - label_buffer, GLUT_BITMAP_8_BY_13); + label_buffer, GLUT_BITMAP_8_BY_13, get_digits()); //suma } else { if( fontSize == LARGE ) { textString( scrn_rect.left + posincr, scrn_rect.top, - label_buffer, GLUT_BITMAP_9_BY_15); + label_buffer, GLUT_BITMAP_9_BY_15,get_digits()); //suma } } }