summaryrefslogtreecommitdiffstats
path: root/mazescene.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <srodal@gmail.com>2008-11-30 17:28:05 +0100
committerSamuel Rødal <srodal@gmail.com>2008-11-30 17:28:05 +0100
commit67ccfa20650a55f6c4301bf334a92998ba90f59e (patch)
tree238b23485c6006fc06f203862976f040323f1bb3 /mazescene.cpp
parent06d06e42e8b438adeef188a2b613ae437474e1eb (diff)
Get rid of outside gradients which were not transformed correctly on pitch.
Diffstat (limited to 'mazescene.cpp')
-rw-r--r--mazescene.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/mazescene.cpp b/mazescene.cpp
index 8b50ba3..730e2e3 100644
--- a/mazescene.cpp
+++ b/mazescene.cpp
@@ -157,15 +157,6 @@ static inline QTransform rotatingTransform(qreal angle)
void MazeScene::drawBackground(QPainter *painter, const QRectF &rect)
{
- QLinearGradient g(QPointF(0, rect.top()), QPointF(0, rect.bottom()));
-
- g.setColorAt(0, QColor(0, 0, 0, 50));
- g.setColorAt(0.4, QColor(0, 0, 0, 100));
- g.setColorAt(0.6, QColor(0, 0, 0, 100));
- g.setColorAt(1, QColor(0, 0, 0, 50));
- painter->fillRect(QRectF(rect.topLeft(), QPointF(rect.right(), rect.center().y())), QColor(100, 120, 200));
- painter->fillRect(QRectF(QPointF(rect.left(), rect.center().y()), rect.bottomRight()), QColor(127, 190, 100));
-
static QImage floor = QImage("floor.png").convertToFormat(QImage::Format_RGB32);
QBrush floorBrush(floor);
@@ -203,8 +194,6 @@ void MazeScene::drawBackground(QPainter *painter, const QRectF &rect)
painter->setTransform(ceilingMatrix.toQTransform(), true);
painter->fillRect(r, ceilingBrush);
painter->restore();
-
- painter->fillRect(rect, g);
}
ProjectedItem::ProjectedItem(const QRectF &bounds, bool shadow)