mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-27 20:41:42 +00:00
Render djui rects with negative dimensions
to not have to calculate widths every time you wanna right align something
This commit is contained in:
parent
ca1e81b479
commit
bd178e2628
2 changed files with 3 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -1221,7 +1221,7 @@ $(BUILD_DIR)/$(LANG_DIR):
|
|||
@$(CP) -f -r $(LANG_DIR) $(BUILD_DIR)
|
||||
|
||||
$(BUILD_DIR)/$(MOD_DIR):
|
||||
$(CP) -f -r $(MOD_DIR) $(BUILD_DIR)
|
||||
@$(CP) -f -r $(MOD_DIR) $(BUILD_DIR)
|
||||
|
||||
$(BUILD_DIR)/$(PALETTES_DIR):
|
||||
@$(CP) -f -r $(PALETTES_DIR) $(BUILD_DIR)
|
||||
|
|
|
|||
|
|
@ -54,11 +54,12 @@ const Gfx dl_djui_menu_rect[] = {
|
|||
|
||||
const Gfx dl_djui_simple_rect[] = {
|
||||
gsDPPipeSync(),
|
||||
gsSPClearGeometryMode(G_LIGHTING),
|
||||
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BOTH),
|
||||
gsDPSetCombineMode(G_CC_FADE, G_CC_FADE),
|
||||
gsDPSetRenderMode(G_RM_XLU_SURF, G_RM_XLU_SURF2),
|
||||
gsSPVertexNonGlobal(vertex_djui_simple_rect, 4, 0),
|
||||
gsSP2Triangles(0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
||||
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue