Render djui rects with negative dimensions

to not have to calculate widths every time you wanna right align something
This commit is contained in:
Cooliokid956 2025-12-13 19:14:00 -06:00
parent ca1e81b479
commit bd178e2628
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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(),
};