Exoplanets.cpp   Exoplanets.cpp 
skipping to change at line 253 skipping to change at line 253
Vec3d pos=obj->getJ2000EquatorialPos(core); Vec3d pos=obj->getJ2000EquatorialPos(core);
Vec3d screenpos; Vec3d screenpos;
// Compute 2D pos and return if outside screen // Compute 2D pos and return if outside screen
if (!painter.getProjector()->project(pos, screenpos)) if (!painter.getProjector()->project(pos, screenpos))
return; return;
const Vec3f& c(obj->getInfoColor()); const Vec3f& c(obj->getInfoColor());
painter.setColor(c[0],c[1],c[2]); painter.setColor(c[0],c[1],c[2]);
texPointer->bind(); texPointer->bind();
painter.enableTexture2d(true); painter.setBlending(true);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Normal
transparency mode
painter.drawSprite2dMode(screenpos[0], screenpos[1], 13.f, S telApp::getInstance().getTotalRunTime()*40.); painter.drawSprite2dMode(screenpos[0], screenpos[1], 13.f, S telApp::getInstance().getTotalRunTime()*40.);
} }
} }
QList<StelObjectP> Exoplanets::searchAround(const Vec3d& av, double limitFo v, const StelCore*) const QList<StelObjectP> Exoplanets::searchAround(const Vec3d& av, double limitFo v, const StelCore*) const
{ {
QList<StelObjectP> result; QList<StelObjectP> result;
if (!flagShowExoplanets) if (!flagShowExoplanets)
return result; return result;
skipping to change at line 695 skipping to change at line 693
} }
int Exoplanets::getSecondsToUpdate(void) int Exoplanets::getSecondsToUpdate(void)
{ {
QDateTime nextUpdate = lastUpdate.addSecs(updateFrequencyHours * 360 0); QDateTime nextUpdate = lastUpdate.addSecs(updateFrequencyHours * 360 0);
return QDateTime::currentDateTime().secsTo(nextUpdate); return QDateTime::currentDateTime().secsTo(nextUpdate);
} }
void Exoplanets::checkForUpdate(void) void Exoplanets::checkForUpdate(void)
{ {
if (updatesEnabled && lastUpdate.addSecs(updateFrequencyHours * 3600 ) <= QDateTime::currentDateTime()) if (updatesEnabled && lastUpdate.addSecs(updateFrequencyHours * 3600 ) <= QDateTime::currentDateTime() && downloadMgr->networkAccessible()==QNet workAccessManager::Accessible)
updateJSON(); updateJSON();
} }
void Exoplanets::updateJSON(void) void Exoplanets::updateJSON(void)
{ {
if (updateState==Exoplanets::Updating) if (updateState==Exoplanets::Updating)
{ {
qWarning() << "[Exoplanets] Already updating... will not st art again current update is complete."; qWarning() << "[Exoplanets] Already updating... will not st art again current update is complete.";
return; return;
} }
 End of changes. 2 change blocks. 
5 lines changed or deleted 2 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/