Constellation.cpp   Constellation.cpp 
skipping to change at line 131 skipping to change at line 131
return; return;
sPainter.setColor(labelColor[0], labelColor[1], labelColor[2], nameF ader.getInterstate()); sPainter.setColor(labelColor[0], labelColor[1], labelColor[2], nameF ader.getInterstate());
sPainter.drawText(XYname[0], XYname[1], nameI18, 0., -sPainter.getFo ntMetrics().width(nameI18)/2, 0, false); sPainter.drawText(XYname[0], XYname[1], nameI18, 0., -sPainter.getFo ntMetrics().width(nameI18)/2, 0, false);
} }
void Constellation::drawArtOptim(StelPainter& sPainter, const SphericalRegi on& region) const void Constellation::drawArtOptim(StelPainter& sPainter, const SphericalRegi on& region) const
{ {
const float intensity = artFader.getInterstate(); const float intensity = artFader.getInterstate();
if (artTexture && intensity && region.intersects(boundingCap)) if (artTexture && intensity && region.intersects(boundingCap))
{ {
sPainter.setColor(intensity,intensity,intensity); if (StelApp::getInstance().getVisionModeNight())
sPainter.setColor(intensity, 0.0, 0.0);
else
sPainter.setColor(intensity,intensity,intensity);
// The texture is not fully loaded // The texture is not fully loaded
if (artTexture->bind()==false) if (artTexture->bind()==false)
return; return;
sPainter.drawStelVertexArray(artPolygon); sPainter.drawStelVertexArray(artPolygon);
} }
} }
// Draw the art texture // Draw the art texture
 End of changes. 1 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/