]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud.cxx
Added write-all parameter to save command. If set to true, the
[flightgear.git] / src / Cockpit / hud.cxx
index 92183ba1855ec54280175f27e18c0f2deb76b6ea..88608312ca46d45ad0ea931c4496f667de9db13f 100644 (file)
@@ -38,6 +38,7 @@
 
 #include <GL/glut.h>
 #include <stdlib.h>
+#include <stdio.h>     //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 *