PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

small sprites

I've noticed that EasyCE won't load sprites smaller than 32x32. Anytime I try the top half of the image comes out distorted, but the same images will work if I increase the dimensions to at least 32x32. Has anyone else encountered this problem? Thanks.
munster · 21 Mar 2002, 04:26 UTC — Sprite problem
I'm having the same problem.
Ehm yeah. I tried to keep the memory usage a bit to efficient there. :) The palette is loaded to a temporary buffer with a size equal to the amount of pixels. Thus, the pixel buffer is used to load the palette as well. If the pixel buffer is smaller than 768 bytes, there is a problem.
The solution (for now) is to use small sprites WITHOUT a palette, i.e. save them as 16bit images. For very small sprites, this is more efficient anyway.