From 675719cdcf3f5019360a2c3505278710565dc5e6 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Sun, 24 Dec 2023 02:31:13 -0500 Subject: [PATCH] Fix bad scissor on A button text --- patches/ui_patches.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patches/ui_patches.c b/patches/ui_patches.c index a6daf79..8ee87dc 100644 --- a/patches/ui_patches.c +++ b/patches/ui_patches.c @@ -376,6 +376,7 @@ void Interface_Draw(PlayState* play) { -(SCREEN_WIDTH - margin_reduction) * 4, -margin_reduction * 4, -(SCREEN_WIDTH - margin_reduction) * 4, -margin_reduction * 4); gEXSetViewportAlign(OVERLAY_DISP++, G_EX_ORIGIN_RIGHT, -(SCREEN_WIDTH - margin_reduction) * 4, -margin_reduction * 4); + gEXSetScissorAlign(OVERLAY_DISP++, G_EX_ORIGIN_RIGHT, G_EX_ORIGIN_RIGHT, -(SCREEN_WIDTH - margin_reduction), -margin_reduction, -(SCREEN_WIDTH - margin_reduction), -margin_reduction, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); Interface_SetOrthoView(interfaceCtx); Gfx_SetupDL39_Overlay(play->state.gfxCtx); @@ -389,6 +390,9 @@ void Interface_Draw(PlayState* play) { Interface_DrawAButton(play); + // @recomp Adjust any scissors to cover the whole screen + gEXSetScissorAlign(OVERLAY_DISP++, G_EX_ORIGIN_LEFT, G_EX_ORIGIN_RIGHT, 0, -margin_reduction, -SCREEN_WIDTH, margin_reduction, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); + // @recomp Move the item being equipped from the center of the screen to the right edge as the timer counts down if (gKaleidoMgrOverlayTable[0].loadedRamAddr != NULL) { // These are overlay symbols, so their addresses need to be offset to get their actual loaded vram address.