mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 06:24:30 +00:00
Fix gDPSetTileCustom
This commit is contained in:
parent
715525d22c
commit
de09338d92
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ extern struct GraphicsContext* __gfxCtx;
|
||||||
#define VTX_T(x,y,z,s,t,cr,cg,cb,a) { { x, y, z }, 0, { s, t }, { cr, cg, cb, a } }
|
#define VTX_T(x,y,z,s,t,cr,cg,cb,a) { { x, y, z }, 0, { s, t }, { cr, cg, cb, a } }
|
||||||
|
|
||||||
#define gDPSetTileCustom(pkt, fmt, siz, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt) \
|
#define gDPSetTileCustom(pkt, fmt, siz, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt) \
|
||||||
do { \
|
_DW({ \
|
||||||
gDPPipeSync(pkt); \
|
gDPPipeSync(pkt); \
|
||||||
gDPTileSync(pkt); \
|
gDPTileSync(pkt); \
|
||||||
gDPSetTile(pkt, fmt, siz, (((width)*siz##_TILE_BYTES) + 7) >> 3, 0, G_TX_LOADTILE, 0, cmt, maskt, shiftt, cms, \
|
gDPSetTile(pkt, fmt, siz, (((width)*siz##_TILE_BYTES) + 7) >> 3, 0, G_TX_LOADTILE, 0, cmt, maskt, shiftt, cms, \
|
||||||
|
@ -284,6 +284,6 @@ extern struct GraphicsContext* __gfxCtx;
|
||||||
cms, masks, shifts); \
|
cms, masks, shifts); \
|
||||||
gDPSetTileSize(pkt, G_TX_RENDERTILE, 0, 0, ((width)-1) << G_TEXTURE_IMAGE_FRAC, \
|
gDPSetTileSize(pkt, G_TX_RENDERTILE, 0, 0, ((width)-1) << G_TEXTURE_IMAGE_FRAC, \
|
||||||
((height)-1) << G_TEXTURE_IMAGE_FRAC); \
|
((height)-1) << G_TEXTURE_IMAGE_FRAC); \
|
||||||
} while (0)
|
})
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue