summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/BannerLoaderGC.cpp
diff options
context:
space:
mode:
authorgigaherz <gigaherz@gmail.com>2008-08-31 20:35:41 +0000
committergigaherz <gigaherz@gmail.com>2008-08-31 20:35:41 +0000
commitbe6c1518ea8185aa401bd0a11b0b78fe18852506 (patch)
tree9ed1e0fb5e510c075c3899d5a3addffe940bd2d8 /Source/Core/DiscIO/Src/BannerLoaderGC.cpp
parent0bebbcb5f45fe1f927b4b600bdc16b825c402c58 (diff)
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
Diffstat (limited to 'Source/Core/DiscIO/Src/BannerLoaderGC.cpp')
-rw-r--r--Source/Core/DiscIO/Src/BannerLoaderGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/BannerLoaderGC.cpp b/Source/Core/DiscIO/Src/BannerLoaderGC.cpp
index 5b540b729d..9e897c22d8 100644
--- a/Source/Core/DiscIO/Src/BannerLoaderGC.cpp
+++ b/Source/Core/DiscIO/Src/BannerLoaderGC.cpp
@@ -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;
}
}
}