Added ReadBannerRGBA8 function to GCMemcard class.

Also "#if FALSE"'d the debug code which outputs BMPs of the banners (because I'm too lazy, the BMPs will "look" upside-down, while the actual image is ok).

Next step will be to also allow reading animations.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@409 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
gigaherz
2008-08-31 20:35:41 +00:00
parent 0bebbcb5f4
commit be6c1518ea
4 changed files with 136 additions and 1 deletions

View File

@ -184,7 +184,7 @@ CBannerLoaderGC::decode5A3image(u32* dst, u16* src, int width, int height)
for (int ix = 0; ix < 4; ix++)
{
u32 RGBA = decode5A3(Common::swap16(src[ix]));
dst[(y + iy) * 96 + (x + ix)] = RGBA;
dst[(y + iy) * width + (x + ix)] = RGBA;
}
}
}