Comment 2 for bug 682033

Revision history for this message
RossMitchell (rossmitchell) wrote :

The issue with incorrect Night Vision text in the oculars plugin is easily fixed

In file plugins/Oculars/src/Oculars.cpp in function Oculars::paintText near line 1424 is
 painter.setColor(0.8, 0.48, 0.0, 1);

replace it with:
 if (StelApp::getInstance().getVisionModeNight())
  painter.setColor(0.8, 0.0, 0.0, 1); //red only
 else
  painter.setColor(0.8, 0.48, 0.0, 1);

Maybe you want to use a function to map the orange text to the suitabel red tone instead of the way I have hard coded it.
With this change I think all of the NightVision issues with the Oculars plugin have been addressed in ver 0.11.4a