I have an odd issue with a Samsung e317. The app works on every other phone and I’m beginning to believe it is an actual problem with the phone. i’ve tested this on three other phones and it works fine (Samsung a620, Sanyo 8100, Nokia 3595).
This is the code in question. It draws images from within images so I can limit my file size by cramming everything into one or two images.
public void drawSubImage(Graphics g, Image src,int x,int y, int subx, int suby, int width, int height)
{
g.setClip(x,y,width,height);
g.drawImage(src,(x-subx),(y-suby),Graphics.TOP|Graphics.LEFT);
// reset the clip rect so further drawing works
g.setClip(0,0,scrx,scry);
}
The problem seems to be with the second setClip which sets the clip rect back to the full screen. I have checked scrx and scry values and they are fine.
Only the graphical elements show up after calls to drawSubImage and none of the hand drawn stuff. Subsequent calls to drawSubImage do seem to work because all the image elements on the screen are drawn, just not the line/fill elements.
This is drawn to an offscreen (mutable) image and not the screen, but I don’t see how that would matter. Especially since it works on other phones.
Anyone seen similar problems on the e317?
Thanks,
Wood