Published: 10/09/09 12:04 AM
I just noticed a rendering bug in Motorola RAZR V3 (using j2me). While the RAZR V3 can render arcs for circles correctly, it doesn’t support ellipses fully.
Ellipses are only rendered correctly if the angle is 90, 180, 270 or 360 degrees. Any angle between will not be rendered correctly. The pattern of mistake depends on the quadrant of the ellipse, as shown in the following graph:

starting at the top-right quadrant, the angle raises too fast (calling drawArc with 60° will output an arc with almost 90°). The top-left quadrant raises the angle too slow, the bottom-left quadrant raises too fast and the bottom-right quadrant raises too slow.
So be aware of that when you use j2mes Graphics method drawArc or fillArc. The following screenshots show the result in the correctly behaving sun wtk emulator compared to a photo of Motorola RAZR V3. The lines (violett, blue, red) from the origin to the arc show the correct angle, while the arc and the filled arc are wrong in the photo.


I’d appreciate comments that list other devices with this bug.