diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-22 15:17:23 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-22 15:17:23 -0600 |
commit | 6953f223818a5a84c8d7a7e12e5f2a2558fd20c5 (patch) | |
tree | 52f0ee885abf2aa442f449bd19238bdb47eaa6c8 /tests | |
parent | e8c3a67b5a6c7b9e737071393d00ab0d6d09983d (diff) | |
download | gtk3-tqt-engine-6953f223818a5a84c8d7a7e12e5f2a2558fd20c5.tar.gz gtk3-tqt-engine-6953f223818a5a84c8d7a7e12e5f2a2558fd20c5.zip |
Fix drawing glitch when line width < 1px
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/test-painter.cpp | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 93f4eee..e4a4c40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,7 +31,7 @@ test_painter_CXXFLAGS = \ $(GTK3_CFLAGS) test_painter_LDADD = \ - $(TDEGTK_LIBADD) ../tdegtk/libtqtcairo.la $(all_libraries) $(CAIRO_LIBS) $(GTK3_LIBS) $(LIB_QT) + $(TDEGTK_LIBADD) ../tdegtk/libtqtcairo.la $(all_libraries) $(CAIRO_LIBS) $(GTK3_LIBS) $(LIB_QT) $(LIB_TDEUI) test_painter_LDFLAGS = \ $(TDEGTK_LDFLAGS) \ diff --git a/tests/test-painter.cpp b/tests/test-painter.cpp index f912009..ad3eb36 100644 --- a/tests/test-painter.cpp +++ b/tests/test-painter.cpp @@ -71,6 +71,22 @@ void runTests(TQPaintDevice* pd) { { p.setPen( TQt::blue ); // set blue pen, 0 pixel width p.drawLine(140,140, 160,160); + p.setPen( TQt::blue ); // set blue pen, 0 pixel width + p.drawLine(470,140, 480,160); + p.setPen( TQt::blue ); // set blue pen, 0 pixel width + p.drawLine(470,170, 490,170); + p.setPen( TQPen(TQt::blue, 1) ); // set blue pen, 1 pixel width + p.drawLine(470,180, 490,180); + p.setPen( TQPen(TQt::blue, 2) ); // set blue pen, 2 pixel width + p.drawLine(470,190, 490,190); + p.setPen( TQPen(TQt::blue, 3) ); // set blue pen, 3 pixel width + p.drawLine(470,200, 490,200); + p.setPen( TQPen(TQt::blue, 4) ); // set blue pen, 4 pixel width + p.drawLine(470,210, 490,210); + p.setPen( TQPen(TQt::blue, 5) ); // set blue pen, 5 pixel width + p.drawLine(470,220, 490,220); + p.setPen( TQPen(TQt::blue, 6) ); // set blue pen, 6 pixel width + p.drawLine(470,230, 490,230); } // Point tests |