mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-10 03:52:00 -04:00
Add ALIGN16 to GRAPH_ALLOC (#1137)
* Add ALIGN16 to GRAPH_ALLOC * format * DebugDisplay_PathDisplayList * 1 more * PR * Format * Reverse gfxHead and gfx * PR
This commit is contained in:
+18
-25
@@ -1721,16 +1721,14 @@ void func_800B8050(Actor* actor, PlayState* play, s32 flag) {
|
||||
Hilite* hilite = func_800BCBF4(&actor->world.pos, play);
|
||||
|
||||
if (flag != 0) {
|
||||
Gfx* displayListHead;
|
||||
Gfx* displayList = GRAPH_ALLOC(play->state.gfxCtx, 2 * sizeof(Gfx));
|
||||
|
||||
displayListHead = displayList;
|
||||
Gfx* gfxHead = GRAPH_ALLOC(play->state.gfxCtx, 2 * sizeof(Gfx));
|
||||
Gfx* gfx = gfxHead;
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx);
|
||||
|
||||
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
||||
gSPEndDisplayList(displayListHead);
|
||||
gSPSegment(POLY_OPA_DISP++, 0x07, displayList);
|
||||
gDPSetHilite1Tile(gfx++, 1, hilite, 0x10, 0x10);
|
||||
gSPEndDisplayList(gfx++);
|
||||
gSPSegment(POLY_OPA_DISP++, 0x07, gfxHead);
|
||||
|
||||
CLOSE_DISPS(play->state.gfxCtx);
|
||||
}
|
||||
@@ -1740,16 +1738,14 @@ void func_800B8118(Actor* actor, PlayState* play, s32 flag) {
|
||||
Hilite* hilite = func_800BCC68(&actor->world.pos, play);
|
||||
|
||||
if (flag != 0) {
|
||||
Gfx* displayListHead;
|
||||
Gfx* displayList = GRAPH_ALLOC(play->state.gfxCtx, 2 * sizeof(Gfx));
|
||||
|
||||
displayListHead = displayList;
|
||||
Gfx* gfxHead = GRAPH_ALLOC(play->state.gfxCtx, 2 * sizeof(Gfx));
|
||||
Gfx* gfx = gfxHead;
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx);
|
||||
|
||||
gDPSetHilite1Tile(displayListHead++, 1, hilite, 0x10, 0x10);
|
||||
gSPEndDisplayList(displayListHead);
|
||||
gSPSegment(POLY_XLU_DISP++, 0x07, displayList);
|
||||
gDPSetHilite1Tile(gfx++, 1, hilite, 0x10, 0x10);
|
||||
gSPEndDisplayList(gfx++);
|
||||
gSPSegment(POLY_XLU_DISP++, 0x07, gfxHead);
|
||||
|
||||
CLOSE_DISPS(play->state.gfxCtx);
|
||||
}
|
||||
@@ -4190,19 +4186,16 @@ Gfx D_801AEFA0[] = {
|
||||
};
|
||||
|
||||
Gfx* func_800BD9A0(GraphicsContext* gfxCtx) {
|
||||
Gfx* displayListHead;
|
||||
Gfx* displayList;
|
||||
Gfx* gfxHead = GRAPH_ALLOC(gfxCtx, 2 * sizeof(Gfx));
|
||||
Gfx* gfx = gfxHead;
|
||||
|
||||
displayListHead = displayList = GRAPH_ALLOC(gfxCtx, sizeof(Gfx) * 2);
|
||||
gDPSetRenderMode(
|
||||
gfx++, AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL | G_RM_FOG_SHADE_A,
|
||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
||||
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
|
||||
gSPEndDisplayList(gfx++);
|
||||
|
||||
gDPSetRenderMode(displayListHead++,
|
||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
||||
G_RM_FOG_SHADE_A,
|
||||
AA_EN | Z_CMP | Z_UPD | IM_RD | CLR_ON_CVG | CVG_DST_WRAP | ZMODE_XLU | FORCE_BL |
|
||||
GBL_c2(G_BL_CLR_IN, G_BL_A_IN, G_BL_CLR_MEM, G_BL_1MA));
|
||||
gSPEndDisplayList(displayListHead++);
|
||||
|
||||
return displayList;
|
||||
return gfxHead;
|
||||
}
|
||||
|
||||
// unused
|
||||
|
||||
Reference in New Issue
Block a user