]> Shamusworld >> Repos - ttedit/blobdiff - src/editwindow.cpp
Fix for missing ampersand in QApplication.
[ttedit] / src / editwindow.cpp
index 97546ef5c3a54ea151eed268410e6c4a2be940e2..f3cc70fdebc03d551e9186fc9efa898b92217202 100755 (executable)
@@ -106,8 +106,8 @@ TODO:
 void EditWindow::paintEvent(QPaintEvent * /*event*/)
 {
        QPainter p(this);
-//hm, causes lockup
-//     p.setRenderHint(QPainter::Antialiasing);
+//hm, causes lockup (or does it???)
+       p.setRenderHint(QPainter::Antialiasing);
 //Doesn't do crap!
 //dc.SetBackground(*wxWHITE_BRUSH);
 
@@ -491,8 +491,10 @@ void EditWindow::mouseMoveEvent(QMouseEvent * event)
 //ex ey 1
 //px py 1
 //
-//(???) By translating the start point to the origin, this can be rewritten as:
+//By translating the start point to the origin, this can be rewritten as:
 //By subtracting row 1 from all rows, you get the following:
+//[because sx = sy = 0. you could leave out the -sx/y terms below. because we subtracted
+// row 1 from all rows (including row 1) row 1 turns out to be zero. duh!]
 //
 //0         0         0
 //(ex - sx) (ey - sy) 0