[Orxonox-commit 2207] r6923 - code/branches/hudelements/src/modules/overlays/hud

rgrieder at orxonox.net rgrieder at orxonox.net
Tue May 18 14:22:52 CEST 2010


Author: rgrieder
Date: 2010-05-18 14:22:51 +0200 (Tue, 18 May 2010)
New Revision: 6923

Modified:
   code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
Log:
HUDNavigation: setFontName() when adding an object should resolve the distance text problem.

Modified: code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc
===================================================================
--- code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc	2010-05-18 07:34:53 UTC (rev 6922)
+++ code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.cc	2010-05-18 12:22:51 UTC (rev 6923)
@@ -365,6 +365,7 @@
     float yScale = this->getActualSize().y;
 
     panel->setDimensions(navMarkerSize_ * xScale, navMarkerSize_ * yScale);
+    text->setFontName(this->fontName_);
     text->setCharHeight(text->getCharHeight() * yScale);
 
     objectStruct tempStruct = {panel, text, true};




More information about the Orxonox-commit mailing list