mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-27 00:00:32 +00:00
maintain three-day clock scissor box size (#168)
This commit is contained in:
parent
27b70f03c1
commit
ff809e061c
@ -5048,8 +5048,9 @@ void Interface_DrawClock(PlayState* play) {
|
||||
* Section: Cuts off Three-Day Clock's Sun and Moon when they dip below the clock
|
||||
*/
|
||||
gDPPipeSync(OVERLAY_DISP++);
|
||||
gDPSetScissorFrac(OVERLAY_DISP++, G_SC_NON_INTERLACE, 400, 620, 880,
|
||||
R_THREE_DAY_CLOCK_SUN_MOON_CUTOFF * 4.0f);
|
||||
// 2S2H [Cosmetic] Adjust the x values so the scissor stays the same size regardless of widescreen
|
||||
gDPSetScissor(OVERLAY_DISP++, G_SC_NON_INTERLACE, OTRConvertHUDXToScreenX(400 / 4), 620 / 4,
|
||||
OTRConvertHUDXToScreenX(880 / 4), R_THREE_DAY_CLOCK_SUN_MOON_CUTOFF);
|
||||
|
||||
// determines the current hour
|
||||
for (sp1C6 = 0; sp1C6 <= 24; sp1C6++) {
|
||||
@ -5108,8 +5109,9 @@ void Interface_DrawClock(PlayState* play) {
|
||||
* Section: Cuts off Three-Day Clock's Hour Digits when they dip below the clock
|
||||
*/
|
||||
gDPPipeSync(OVERLAY_DISP++);
|
||||
gDPSetScissorFrac(OVERLAY_DISP++, G_SC_NON_INTERLACE, 400, 620, 880,
|
||||
R_THREE_DAY_CLOCK_HOUR_DIGIT_CUTOFF * 4.0f);
|
||||
// 2S2H [Cosmetic] Adjust the x values so the scissor stays the same size regardless of widescreen
|
||||
gDPSetScissor(OVERLAY_DISP++, G_SC_NON_INTERLACE, OTRConvertHUDXToScreenX(400 / 4), (620 / 4),
|
||||
OTRConvertHUDXToScreenX(880 / 4), R_THREE_DAY_CLOCK_SUN_MOON_CUTOFF);
|
||||
|
||||
/**
|
||||
* Section: Draws Three-Day Clock's Hour Digit Above the Sun
|
||||
|
Loading…
Reference in New Issue
Block a user