Skip to content

Commit 84e8165

Browse files
committed
Fixed scale demos
1 parent f8d4f94 commit 84e8165

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/graphics/AffineScale.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected void drawContent(Graphics g, Rectangle bounds) {
2727
g.fillLinearGradient(0xff0000, 0xff, 0, 0, 100, 100, true);
2828

2929
transform.scale(-1, 1);
30-
g.fillLinearGradient(0xff0000, 0xff, 100, 100, 100, 100, true);
30+
g.fillLinearGradient(0xff0000, 0xff, 0, 100, 100, 100, true);
3131
g.resetAffine();
3232
}
3333

scripts/hellocodenameone/common/src/main/java/com/codenameone/examples/hellocodenameone/tests/graphics/Scale.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected void drawContent(Graphics g, Rectangle bounds) {
2121
g.translate(translateX, translateY);
2222
g.fillLinearGradient(0xff0000, 0xff, 0, 0, 100, 100, true);
2323
g.scale(-1, 1);
24-
g.fillLinearGradient(0xff0000, 0xff, 100, 100, 100, 100, true);
24+
g.fillLinearGradient(0xff0000, 0xff, 0, 100, 100, 100, true);
2525

2626
g.translate(-translateX, -translateY);
2727
g.resetAffine();

0 commit comments

Comments
 (0)