• Advertisement
Sign in to follow this  

J2ME Samsung double buffer problem

This topic is 4357 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I write a game where the level consists of small pieces (tiles) of size 16x16. To make the game faster I use two buffers. First I draw all the level piece on one buffer, then (when I move) I draw one buffer to other with some offset, and then draw the borders (some pieces must come onto screen). Every phone works right but not Samsung (mainly X640). I think one buffer is not drawn right onto the other, and border pieces are drawn right. The other problem is with some colors that are not drawn at all. The problem is only on Samsung device. Siemens, Sony Ericsson and Motorola work right!

Share this post


Link to post
Share on other sites
Advertisement
If it's only certain colours which seem to be wrong, make sure your png with the tiles on it has been saved without transparency.

Some Samsungs decide for themselves what will be transparent though!
Try loading your tiles.png into Paintshop Pro, then saving them out again.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement