Menu

#38 drawRegion operation bug

open
nobody
None
5
2008-02-22
2007-02-17
No

When the draw image is called with a destication area that extends beyond the Graphics object an exception is thrown.

The j2me midp2 API states about Graphics.drawRegion() method:

"The (x_dest, y_dest) coordinates are relative to the coordinate system of this Graphics object. It is legal for the destination area to extend beyond the bounds of the Graphics object. Pixels outside of the bounds of the Graphics object will not be drawn."

The exception is thrown inside the org.microemu.device.j2se.J2SEDisplayGraphics class on line 283-285. If the "if" on that line is commented out, the emulator works as expected.

Discussion

  • Bartek Teodorczyk

    • milestone: 684954 --> 717032
     
  • Bartek Teodorczyk

    • milestone: 717032 -->
     

Log in to post a comment.