Files
gcmm/source/bannerload.h
sulokutdcmago 071e9d9b60 Corrected alpha blending (it was wrong all along, not very noticeable with current colors)
DrawBoxFilledGradient can modify the midpoint of the color gradient
Waits user to release the buttons (to avoid accidental restores)
Shows Memory Card free blocks in restore/backup mode
Shows page number in file selector
Icon won't try to load in raw modes.
Now can hold up/down to scroll the list. Also can use left/right to jump 5 elements up or down (can also be hold)
File list will always have the same order (previously looping back from first item filled the page, leading to repeated savegame entries when returning to page 1)
Uses retracecount as default method for icon animation (same timing as IPL and wii system menu)
Fixed sd gecko slot selection in GC mode (previous tried to use the same slot for memory card and sd gecko)
Shows filename when prompted to overwrite
Double check when raw restoring to ensure restore is correct (makes it a little slower, from 11 blocks/second to 9/blocks second roughly)
2012-10-07 11:18:19 +00:00

34 lines
1.2 KiB
C

/***
All of the code in bannerload.c is thanks in large part to the Dolphin Wii/GcN Emulator
Project. These functions serve to decode the RGB5A3 format that GCN Banner/Icon Files use
and create an array of BGR values, used later by the ShowBanner function.
ShowBanner is a simple modification of ShowBMP.
Files from Dolphin Project that were used as the basis for this code:
BannerLoaderGC.cpp, ColorUtil.cpp, and TextureDecoder.cpp
(http://dolphin-emu.googlecode.com/svn/trunk/)
***/
//this is the background color in RGB for alpha blending (values are BGR)
//This ones look almost the same in dolphin as GC IPL
//#define BLUECOL ((140<<16)|(0<<8)|0)
//#define PURPLECOL ((100<<16)|(0<<8)|70)
//This ones look more like IPL on real TV
#define BLUECOL ((170<<16)|(30<<8)|30)
#define PURPLECOL ((130<<16)|(30<<8)|100)
#define LOCATION 0.5
//This is the blueish background color
//#define BLENDCOL ((211<<16)|(174<<8)|84)
//16-bit banner data function
void bannerloadRGB(u16*);
//8-bit banner data function
void bannerloadCI(u8*, u16*);
//16-bit icon data function
void iconloadRGB(u16*);
//8-bit icon data function
void iconloadCI(u8*, u16*);