X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fhud_lat.cxx;h=0f9c79268790f78aaa11bac20f6fc03d735eca66;hb=f057fd0d4897ef65c4d36159af37ba3fdd544798;hp=4d57a6deb3cd5884c91cce404c8318270c8477e0;hpb=182fd42b4017fa54d680508c092ea1b216398a00;p=flightgear.git diff --git a/src/Cockpit/hud_lat.cxx b/src/Cockpit/hud_lat.cxx index 4d57a6deb..0f9c79268 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, digit ) TextString( text, x , y,digit ) //suma #else -#define textString( x , y, text, font ) puDrawString ( guiFnt, text, x, y ); +#define textString( x , y, text, 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 ), @@ -135,14 +136,14 @@ draw( void ) // Required method in base class posincr = 0; // 0; } - if( fontSize == SMALL ) { + if( fontSize == HUD_FONT_SMALL ) { textString( scrn_rect.left + posincr, scrn_rect.top, - label_buffer, GLUT_BITMAP_8_BY_13); + label_buffer, get_digits()); //suma } else { - if( fontSize == LARGE ) { + if( fontSize == HUD_FONT_LARGE ) { textString( scrn_rect.left + posincr, scrn_rect.top, - label_buffer, GLUT_BITMAP_9_BY_15); + label_buffer, get_digits()); //suma } } }