diff --git a/tests/gfx/DrawRedStringTest.java b/tests/gfx/DrawRedStringTest.java index 47d59e02..fbc20209 100644 --- a/tests/gfx/DrawRedStringTest.java +++ b/tests/gfx/DrawRedStringTest.java @@ -10,7 +10,7 @@ public class DrawRedStringTest extends MIDlet { class TestCanvas extends Canvas { protected void paint(Graphics g) { g.setColor(0x00FFFFFF); - g.fillRect(0, 0, getWidth() - 1, getHeight() - 1); + g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(0x00FF0000); g.setStrokeStyle(Graphics.SOLID); g.drawString("Red top left", 0, 0, Graphics.TOP | Graphics.LEFT); diff --git a/tests/gfx/DrawRedStringTest.png b/tests/gfx/DrawRedStringTest.png index 2be722ad..c620f5de 100644 Binary files a/tests/gfx/DrawRedStringTest.png and b/tests/gfx/DrawRedStringTest.png differ diff --git a/tests/gfx/DrawStringTest.java b/tests/gfx/DrawStringTest.java index efdc2592..54bfabd9 100644 --- a/tests/gfx/DrawStringTest.java +++ b/tests/gfx/DrawStringTest.java @@ -10,7 +10,7 @@ public class DrawStringTest extends MIDlet { class TestCanvas extends Canvas { protected void paint(Graphics g) { g.setColor(0x00FFFFFF); - g.fillRect(0, 0, getWidth() - 1, getHeight() - 1); + g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(0); g.setStrokeStyle(Graphics.SOLID); g.drawString("Top left", 0, 0, Graphics.TOP | Graphics.LEFT); diff --git a/tests/gfx/DrawStringTest.png b/tests/gfx/DrawStringTest.png index b10e485e..ca5392b7 100644 Binary files a/tests/gfx/DrawStringTest.png and b/tests/gfx/DrawStringTest.png differ