StelGuiItems.cpp   StelGuiItems.cpp 
skipping to change at line 253 skipping to change at line 253
} }
QPixmap StelButton::makeRed(const QPixmap& p) QPixmap StelButton::makeRed(const QPixmap& p)
{ {
QImage im = p.toImage().convertToFormat(QImage::Format_ARGB32); QImage im = p.toImage().convertToFormat(QImage::Format_ARGB32);
Q_ASSERT(im.format()==QImage::Format_ARGB32); Q_ASSERT(im.format()==QImage::Format_ARGB32);
QRgb* bits = (QRgb*)im.bits(); QRgb* bits = (QRgb*)im.bits();
const QRgb* stop = bits+im.width()*im.height(); const QRgb* stop = bits+im.width()*im.height();
do do
{ {
*bits = qRgba(qRed(*bits), (int)(0.2*qGreen(*bits)), (int)(0 Vec3f col = StelUtils::getNightColor(Vec3f(qRed(*bits)/256.0
.2*qBlue(*bits)), qAlpha(*bits)); , qGreen(*bits)/256.0, qBlue(*bits)/256.0));
*bits = qRgba((int)(256*col[0]), (int)(256*col[1]), (int)(25
6*col[2]), qAlpha(*bits));
++bits; ++bits;
} }
while (bits!=stop); while (bits!=stop);
return QPixmap::fromImage(im); return QPixmap::fromImage(im);
} }
LeftStelBar::LeftStelBar(QGraphicsItem* parent) : QGraphicsItem(parent) LeftStelBar::LeftStelBar(QGraphicsItem* parent) : QGraphicsItem(parent)
{ {
// Create the help label // Create the help label
 End of changes. 1 change blocks. 
2 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/