]> Shamusworld >> Repos - ttedit/blobdiff - src/charwindow.cpp
Minor changes: Supply a reasonable default epsilon to vector::zero() and
[ttedit] / src / charwindow.cpp
index 95965d4d60f2f5810d5974c8b6e37fcdde7fd155..769c20fe8ff4c52f28bee76a3d1760cba3b03e49 100755 (executable)
@@ -145,9 +145,9 @@ void CharWindow::paintEvent(QPaintEvent * /*event*/)
 
        QPainter p(this);
 
-       p.setBrush(QColor(122, 163, 39));
-// Need to translate as well...
-//     p.scale(2.0, 2.0);
+       p.setPen(QPen(Qt::black, 1.0, Qt::SolidLine));
+//     p.setBrush(QColor(122, 163, 39));
+       p.setBrush(Qt::black);
 
 /*
 1.0 -> 3.0, height = 400
@@ -176,8 +176,6 @@ conv.fac. -> (ps.h / r.h)
        {
                // height is limiting factor
                p.scale(yConvFac, -yConvFac);
-//extraX = (rect.height() / (float)paintSize.height()) * (float)paintSize.width();
-//extraX = (extraX - rect.width()) / 2.0f;
                extraX = (((float)paintSize.width() / yConvFac) - rect.width()) / 2.0f;
        }
        else