X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fhud.cxx;h=88608312ca46d45ad0ea931c4496f667de9db13f;hb=b9e866cfdd765cc742a6c9b3e35c8a9c1ca08dfc;hp=92183ba1855ec54280175f27e18c0f2deb76b6ea;hpb=b6a259dc9031dcd232b1e8dba9ee39c220417cd5;p=flightgear.git diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index 92183ba18..88608312c 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -38,6 +38,7 @@ #include #include +#include //char related functions #include STL_STRING #include STL_FSTREAM @@ -931,7 +932,7 @@ void fgHUDalphaInit( void ) { char *s; int labelX = (DialogWidth / 2) - - (puGetStringWidth( puGetDefaultLabelFont(), Label ) / 2); + ( puGetDefaultLabelFont().getStringWidth( Label ) / 2); int nSliders = 1; int slider_x = 10; @@ -946,8 +947,8 @@ void fgHUDalphaInit( void ) { puGetDefaultFonts ( &HUDalphaLegendFont, &HUDalphaLabelFont ); HUDalphaDialog = new puDialogBox ( DialogX, DialogY ); { - int horiz_slider_height = puGetStringHeight (HUDalphaLabelFont) + - puGetStringDescender (HUDalphaLabelFont) + + int horiz_slider_height = HUDalphaLabelFont.getStringHeight() + + HUDalphaLabelFont.getStringDescender() + PUSTR_TGAP + PUSTR_BGAP + 5; /* puFrame *