My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 70 attachment: fix-Image-getGraphics.patch (930 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: microemu-javase-swing/src/main/java/org/microemu/device/j2se/J2SEMutableImage.java
===================================================================
--- microemu-javase-swing/src/main/java/org/microemu/device/j2se/J2SEMutableImage.java (revision 2416)
+++ microemu-javase-swing/src/main/java/org/microemu/device/j2se/J2SEMutableImage.java (working copy)
@@ -28,6 +28,7 @@
package org.microemu.device.j2se;

import java.awt.Graphics2D;
+import java.awt.geom.AffineTransform;
import java.awt.image.PixelGrabber;

import org.microemu.device.MutableImage;
@@ -50,6 +51,7 @@
public javax.microedition.lcdui.Graphics getGraphics()
{
Graphics2D g = graphicsSurface.getGraphics();
+ g.setTransform(new AffineTransform());
g.setClip(0, 0, getWidth(), getHeight());
J2SEDisplayGraphics displayGraphics = new J2SEDisplayGraphics(graphicsSurface);
displayGraphics.setColor(0x00000000);
Powered by Google Project Hosting