mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
swap bg_header raster/palette fields
This commit is contained in:
parent
5e6173f25b
commit
6c59c2fca7
@ -1241,6 +1241,15 @@ typedef struct tile_descriptor {
|
|||||||
/* 0x2F */ u8 filtering;
|
/* 0x2F */ u8 filtering;
|
||||||
} tile_descriptor; // size = 0x30
|
} tile_descriptor; // size = 0x30
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
/* 0x00 */ u32 palette;
|
||||||
|
/* 0x04 */ u32 raster;
|
||||||
|
/* 0x08 */ u16 startX;
|
||||||
|
/* 0x0A */ u16 startY;
|
||||||
|
/* 0x0C */ u16 width;
|
||||||
|
/* 0x0E */ u16 height;
|
||||||
|
} bg_header; // size = 0x10
|
||||||
|
|
||||||
typedef struct model_group_data {
|
typedef struct model_group_data {
|
||||||
/* 0x00 */ UNK_PTR transformMatrix;
|
/* 0x00 */ UNK_PTR transformMatrix;
|
||||||
/* 0x04 */ UNK_PTR lightingGroup;
|
/* 0x04 */ UNK_PTR lightingGroup;
|
||||||
|
@ -37,8 +37,8 @@ void read_background_size(bg_header *bg) {
|
|||||||
gameStatus->backgroundMaxH = bg->height;
|
gameStatus->backgroundMaxH = bg->height;
|
||||||
gameStatus->backgroundMinW = bg->startX;
|
gameStatus->backgroundMinW = bg->startX;
|
||||||
gameStatus->backgroundMinH = bg->startY;
|
gameStatus->backgroundMinH = bg->startY;
|
||||||
gameStatus->backgroundRaster = bg->palette; // wtf?
|
gameStatus->backgroundRaster = bg->raster;
|
||||||
gameStatus->backgroundPalette = bg->raster;
|
gameStatus->backgroundPalette = bg->palette;
|
||||||
gameStatus->enableBackground |= 1;
|
gameStatus->enableBackground |= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user