Oops, fix range (2 is too small value)
authorunc0rr
Wed, 14 Mar 2012 11:07:22 +0400
changeset 6784 2c02ccb8f4ec
parent 6783 8d9160b85bdb
child 6785 a8aa5984185f
Oops, fix range (2 is too small value)
QTfrontend/drawmapscene.cpp
--- a/QTfrontend/drawmapscene.cpp	Tue Mar 13 22:25:43 2012 -0400
+++ b/QTfrontend/drawmapscene.cpp	Wed Mar 14 11:07:22 2012 +0400
@@ -40,7 +40,7 @@
     gradient.setColorAt(1, QColor(155, 155, 60));
     setBackgroundBrush(QBrush(gradient));
 
-    m_pen.setWidth(72);
+    m_pen.setWidth(76);
     m_pen.setJoinStyle(Qt::RoundJoin);
     m_pen.setCapStyle(Qt::RoundCap);
     m_currPath = 0;
@@ -102,9 +102,9 @@
 
 void DrawMapScene::wheelEvent(QGraphicsSceneWheelEvent * wheelEvent)
 {
-    if(wheelEvent->delta() > 0 && m_pen.width() < 512)
+    if(wheelEvent->delta() > 0 && m_pen.width() < 516)
         m_pen.setWidth(m_pen.width() + 10);
-    else if(wheelEvent->delta() < 0 && m_pen.width() >= 12)
+    else if(wheelEvent->delta() < 0 && m_pen.width() >= 16)
         m_pen.setWidth(m_pen.width() - 10);
 
     if(m_currPath)