Revision: 2491
http://sourceforge.net/p/swingme/code/2491
Author: yuranet
Date: 2021-06-28 22:23:33 +0000 (Mon, 28 Jun 2021)
Log Message:
-----------
scale works
Modified Paths:
--------------
iOSME/src/javax/microedition/lcdui/Graphics.java
Modified: iOSME/src/javax/microedition/lcdui/Graphics.java
===================================================================
--- iOSME/src/javax/microedition/lcdui/Graphics.java 2021-06-28 16:25:20 UTC (rev 2490)
+++ iOSME/src/javax/microedition/lcdui/Graphics.java 2021-06-28 22:23:33 UTC (rev 2491)
@@ -42,7 +42,7 @@
private UIColor color;
private int tx, ty;
- private int strokeWidth, strokeStyle;
+ private int strokeWidth = 1, strokeStyle;
// Get clipBounds is slow, we keep a cache.
private CGRect clipBounds = new CGRect();
@@ -174,7 +174,9 @@
public void scale(double sx, double sy) {
CoreGraphics.CGContextTranslateCTM(context, tx, ty);
CoreGraphics.CGContextScaleCTM(context, sx, sy);
- CoreGraphics.CGContextTranslateCTM(context, - tx * sx, - ty * sy);
+ tx = (int)(tx * sx);
+ ty = (int)(ty * sy);
+ CoreGraphics.CGContextTranslateCTM(context, - tx, - ty);
dirtyClip = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|