flushGraphics(int, int, int, int)

Hi,

I’m trying to optimize the drawing mechanism for my simple tetris game,. I’ve made sure to only redraw the changed areas on the backbuffer. This work perfectly as long as I do a full flush with flushGraphics(), but when I try to use the flushGraphics(int, int, int, int) method, something goes wrong.

The emulator (packed with NetBeans 4.1) won’t update the specified area as documented (skips the last column and row, I think). My Z520i just updates the 1/4 upper area of the display, regardless of input.

Any ideas what’s wrong?