Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSilenio Quarti2005-10-20 20:09:49 +0000
committerSilenio Quarti2005-10-20 20:09:49 +0000
commit9a876da0fd7e85da4818ee0669b70b4ace71e1a7 (patch)
tree7e0ed3bf4bffe9507911610e40129d960dfd562d /tests
parentccd621274ed9e97d00a3d7cf47210de6e1daa05c (diff)
downloadeclipse.platform.swt-9a876da0fd7e85da4818ee0669b70b4ace71e1a7.tar.gz
eclipse.platform.swt-9a876da0fd7e85da4818ee0669b70b4ace71e1a7.tar.xz
eclipse.platform.swt-9a876da0fd7e85da4818ee0669b70b4ace71e1a7.zip
85539 - avoid antialiased lines
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
index 1ee157612a..43b187aa1d 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
@@ -166,10 +166,9 @@ public void test_copyAreaIIIIII() {
int destY = 50;
gc.setBackground(white);
- gc.setForeground(white);
gc.fillRectangle(image.getBounds());
- gc.setForeground(blue);
- gc.drawLine(5, 0, 10, 0);
+ gc.setBackground(blue);
+ gc.fillRectangle(5, 0, 6, 1);
gc.copyArea(0, 0, width, height, destX, destY);
ImageData imageData = image.getImageData();
@@ -191,10 +190,9 @@ public void test_copyAreaLorg_eclipse_swt_graphics_ImageII() {
RGB blueRGB = getRealRGB(blue);
gc.setBackground(white);
- gc.setForeground(white);
gc.fillRectangle(image.getBounds());
- gc.setForeground(blue);
- gc.drawLine(5, 0, 10, 0);
+ gc.setBackground(blue);
+ gc.fillRectangle(5, 0, 6, 1);
Image image = new Image(display, 12, 12);
gc.copyArea(image, 0, 0);
ImageData imageData = image.getImageData();

Back to the top