Skip to content

Commit

Permalink
fix ref #14740
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Apr 18, 2024
1 parent 94d8ea7 commit 4a6c257
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/guisim/GUIChargingStation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/// @author Michael Behrisch
/// @author Tamas Kurczveil
/// @author Pablo Alvarez Lopez
/// @author Mirko Barthauer
/// @date 20-12-13
///
// A lane area vehicles can halt at (gui-version)
Expand Down Expand Up @@ -146,8 +147,11 @@ GUIChargingStation::drawGL(const GUIVisualizationSettings& s) const {

// push charging power matrix
GLHelper::pushMatrix();
// translate and rotate
glTranslated(myFGSignPos.x(), myFGSignPos.y(), 0);
glRotated(-myFGSignRot, 0, 0, 1);
// draw charging power
GLHelper::drawText((toString(myChargingPower) + " W").c_str(), myFGSignPos + Position(1.2, 0), .1, 1.f, s.colorSettings.chargingStationColor, myFGSignRot, FONS_ALIGN_LEFT);
GLHelper::drawText((toString(myChargingPower) + " W").c_str(), Position(1.2, 0), .1, 1.f, s.colorSettings.chargingStationColor, 0, FONS_ALIGN_LEFT);
// pop charging power matrix
GLHelper::popMatrix();

Expand Down

0 comments on commit 4a6c257

Please sign in to comment.