mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 23:05:20 -04:00
Minor fixes
This commit is contained in:
@@ -2264,6 +2264,7 @@ egg/gfx/eggLightObject.cpp:
|
||||
.text start:0x804A9810 end:0x804AB24C
|
||||
.rodata start:0x804FBC88 end:0x804FBC98
|
||||
.data start:0x8056F098 end:0x8056F0B8
|
||||
.sdata start:0x80574F30 end:0x80574F38
|
||||
.sdata2 start:0x8057F690 end:0x8057F6C0
|
||||
|
||||
egg/gfx/eggLightTexture.cpp:
|
||||
|
||||
@@ -290,7 +290,7 @@ void CpuTexture::setColor(u16 x, u16 y, GXColor color) {
|
||||
case GX_TF_I8:
|
||||
case GX_TF_Z8: {
|
||||
// TODO
|
||||
int offset = ((x >> 3) + (y >> 2) * (getWidth() / 8)) * 0x20 + (x & 3) * 8 + (x & 7);
|
||||
int offset = ((x >> 3) + (y >> 2) * (getWidth() / 8)) * 0x20 + (y & 3) * 8 + (x & 7);
|
||||
u8 *dat = static_cast<u8 *>(getBuffer()) + offset;
|
||||
dat[0] = color.r;
|
||||
break;
|
||||
@@ -325,7 +325,7 @@ GXColor CpuTexture::getColor(u16 x, u16 y) const {
|
||||
case GX_TF_I8:
|
||||
case GX_TF_Z8: {
|
||||
// TODO
|
||||
int offset = ((x >> 3) + (y >> 2) * (getWidth() / 8)) * 0x20 + (x & 3) * 8 + (x & 7);
|
||||
int offset = ((x >> 3) + (y >> 2) * (getWidth() / 8)) * 0x20 + (y & 3) * 8 + (x & 7);
|
||||
u8 *dat = static_cast<u8 *>(getBuffer()) + offset;
|
||||
c.a = dat[0];
|
||||
c.b = dat[0];
|
||||
|
||||
Reference in New Issue
Block a user