diff options
| author | Alex Marshall <trap15@raidenii.net> | 2010-08-19 22:39:15 -0700 |
|---|---|---|
| committer | Alex Marshall <trap15@raidenii.net> | 2010-08-19 22:39:15 -0700 |
| commit | 70cd69363ac0c6796edc00ab8d63c73bf68b03b3 (patch) | |
| tree | 3a335bef8d66348974c68126fd7cb24bce4a9bf4 /zetsubou | |
| parent | 77030871c6e58c7b4e2bfc655f344dd0061f2544 (diff) | |
Small issue in RGB5A3's toBitMap function that caused alpha degradation
Diffstat (limited to 'zetsubou')
| -rw-r--r-- | zetsubou/tpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zetsubou/tpl.c b/zetsubou/tpl.c index 893ad3b..42fa542 100644 --- a/zetsubou/tpl.c +++ b/zetsubou/tpl.c @@ -268,7 +268,7 @@ int TPL_ConvertRGB5A3ToBitMap(u8* tplbuf, u32 tplsize, u32 tplpoint, u8** bitmap (*(u32**)bitmapdata)[x + (y * width)] = rgba; }else{ // RGB4A3 - u8 a = (((oldpixel >> 12) & 0x7) * 64) / 7; + u8 a = (((oldpixel >> 12) & 0x7) * 255) / 7; u8 r = (((oldpixel >> 8) & 0xF) * 255) / 15; u8 g = (((oldpixel >> 4) & 0xF) * 255) / 15; u8 b = (((oldpixel >> 0) & 0xF) * 255) / 15; |
