X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fhud_inst.cxx;h=53894e257710177def550d027c6d22d0a88c2639;hb=f057fd0d4897ef65c4d36159af37ba3fdd544798;hp=ed4a50b207aaf5f83713e1ecc1123e81ae087fc9;hpb=365b26d0933a4b9407e9a00b195f0e366d7a6b38;p=flightgear.git diff --git a/src/Cockpit/hud_inst.cxx b/src/Cockpit/hud_inst.cxx index ed4a50b20..53894e257 100644 --- a/src/Cockpit/hud_inst.cxx +++ b/src/Cockpit/hud_inst.cxx @@ -3,8 +3,9 @@ UINT instr_item :: instances = 0; // Initial value of zero -int instr_item :: brightness = BRT_MEDIUM; -glRGBTRIPLE instr_item :: color = {0.1, 0.7, 0.0}; +int instr_item :: brightness = HUD_BRT_MEDIUM; +//glRGBTRIPLE instr_item :: color = {0.1, 0.7, 0.0}; +glRGBTRIPLE instr_item :: color = {0.0, 1.0, 0.0}; // constructor ( No default provided ) instr_item :: @@ -15,13 +16,15 @@ instr_item :: FLTFNPTR data_source, float data_scaling, UINT options, - bool working) : + bool working, + int digit) : //suma handle ( ++instances ), load_value_fn ( data_source ), disp_factor ( data_scaling ), opts ( options ), is_enabled ( working ), - broken ( FALSE ) + broken ( FALSE ), + digits ( digit ) //suma { scrn_pos.left = x; scrn_pos.top = y;