google-code-export / microemu

Automatically exported from code.google.com/p/microemu
1 stars 0 forks source link

Image.getGraphics() returns an already translated Graphics object #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try the attached MIDlet on microemulator (java SE swing)

What is the expected output? What do you see instead?

You should see the text at the very top left of the screen, instead it is a 
little bit shifted (10 x 10 pixels) to the right and bottom.

What version of the product are you using? On what operating system?

svn version of microemulator, Revision: 2416

Please provide any additional information below.

The graphics object associated with an Image should have its transformation 
matrix set to identity when we get it using the getGraphics method.

I attach a patch that solves the problem. 

Original issue reported on code.google.com by charlie...@gmail.com on 13 Sep 2010 at 7:52

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in trunk

Original comment by bar...@gmail.com on 16 Sep 2010 at 2:25