I'm using Ryleh's Minimal Library v0.A, and after a day's worth of debugging think I have found a problem either with the library, or something silly I keep overlooking.
I'm loading a JPG, then converting it to 8bit palettized. I've created a simple greyscale palette, so the image should look as good as the original - only greyscale. The problem is, when it is displayed, the image has some white vertical lines through it. There is a slightly shaded area (appears white in photo) that appears to have greyish lines going through it. The lines are perfectly spaced across the entire image. Photo
After hours of trying to figure out what was going wrong - I decided to just save off the converted image and see exactly whats going wrong with the conversion. To my surprise, upon opening the file the image was 100% perfect (admitidly the first and last rows were swapped, probably due to the JPG decoding not being 100%).
So this has left me very, very confused. The image is fine, and the palette works fine when I do a test (gradiant going from black to white). Whats going on?
My code is quite simple:
I wrote my own blitter (old slow way) and it displayed exactly the same problem.
I'm loading a JPG, then converting it to 8bit palettized. I've created a simple greyscale palette, so the image should look as good as the original - only greyscale. The problem is, when it is displayed, the image has some white vertical lines through it. There is a slightly shaded area (appears white in photo) that appears to have greyish lines going through it. The lines are perfectly spaced across the entire image. Photo
After hours of trying to figure out what was going wrong - I decided to just save off the converted image and see exactly whats going wrong with the conversion. To my surprise, upon opening the file the image was 100% perfect (admitidly the first and last rows were swapped, probably due to the JPG decoding not being 100%).
So this has left me very, very confused. The image is fine, and the palette works fine when I do a test (gradiant going from black to white). Whats going on?
My code is quite simple:
Code:
blitRect.x = 0;
blitRect.y = 0;
blitRect.w = britImg.width;
blitRect.h = britImg.height;
blitRect.data8 = (unsigned char*)britImg.data;
blitRect.solid = 1;
...
gp2x_blitter_rect8(&blitRect);
I wrote my own blitter (old slow way) and it displayed exactly the same problem.