]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud.hxx
Set up the model view matrix exactly as ssg does it before drawing sky, stars
[flightgear.git] / src / Cockpit / hud.hxx
index e262456424cce507ddbf7f7058b478cca6d0ed80..4b5006070cb4ed25713c09b81aca3193f0b94957 100644 (file)
@@ -57,6 +57,8 @@
 
 FG_USING_STD(deque);
 FG_USING_STD(vector);
+FG_USING_NAMESPACE(std);
+
 
 #ifndef WIN32
   typedef struct {
@@ -233,12 +235,9 @@ extern float HUD_matrix[16];
 
 class fgText {
 private:
-    char msg[32];
     float x, y;
+    char msg[32];
 public:
-    fgText( char *c = NULL, float x = 0, float y =0 )
-        : x(x), y(y) {strncpy(msg,c,32-1);}
-
     fgText( float x = 0, float y = 0, char *c = NULL )
         : x(x), y(y) {strncpy(msg,c,32-1);}
 
@@ -434,7 +433,7 @@ class instr_item {  // An Abstract Base Class (ABC)
     }
     void TextString( char *msg, float x, float y )
     {
-        HUD_TextList.add(fgText(msg, x, y));        
+        HUD_TextList.add(fgText(x, y, msg));        
     }
     int getStringWidth ( char *str )
     {