From de09338d92e50dd3b9cb8ee7214e2e6b3fecf7ff Mon Sep 17 00:00:00 2001 From: cadmic Date: Sat, 24 Aug 2024 13:43:29 -0700 Subject: [PATCH] Fix gDPSetTileCustom --- include/macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/macros.h b/include/macros.h index 5ed5c9e465..daeba012ad 100644 --- a/include/macros.h +++ b/include/macros.h @@ -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 gDPSetTileCustom(pkt, fmt, siz, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt) \ - do { \ + _DW({ \ gDPPipeSync(pkt); \ gDPTileSync(pkt); \ 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); \ gDPSetTileSize(pkt, G_TX_RENDERTILE, 0, 0, ((width)-1) << G_TEXTURE_IMAGE_FRAC, \ ((height)-1) << G_TEXTURE_IMAGE_FRAC); \ - } while (0) + }) #endif