]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel_io.cxx
Yank out all the glut dependencies and concentrate them in a (easily
[flightgear.git] / src / Cockpit / panel_io.cxx
index 55dcb52ac85ffb03596c7fa9b1783b6917f1cdd3..64641b5f74c8f4db7aa569848e63216fe1644f74 100644 (file)
@@ -366,9 +366,10 @@ readTextChunk (const SGPropertyNode * node)
     string propName = node->getStringValue("property");
     float scale = node->getFloatValue("scale", 1.0);
     float offset = node->getFloatValue("offset", 0.0);
+    bool truncation = node->getBoolValue("truncate", false);
     SGPropertyNode * target = fgGetNode(propName.c_str(), true);
     chunk = new FGTextLayer::Chunk(FGTextLayer::DOUBLE_VALUE, target,
-                                  format, scale, offset);
+                                  format, scale, offset, truncation);
   }
 
                                // Unknown type.