@@ -675,6 +675,27 @@ void DisplayOverlays(void)
675675{
676676 short * felony ;
677677
678+ #ifndef PSX
679+ if (gWidescreenOverlayAlign )
680+ {
681+ // align to PSX-mapped screen coordinates
682+ RECT16 emuViewport ;
683+ PsyX_GetPSXWidescreenMappedViewport (& emuViewport );
684+
685+ // recalc pos
686+ gOverlayXPos = 16 + emuViewport .x ;
687+ gOverlayXOppPos = emuViewport .w - 16 - PERCENTAGE_BAR_WIDTH ;
688+ gMapXOffset = emuViewport .w - 16 - MAP_SIZE_W ;
689+
690+ // set up
691+ PlayerDamageBar .xpos = gOverlayXPos ;
692+ Player2DamageBar .xpos = gOverlayXPos ;
693+ FelonyBar .xpos = gOverlayXPos ;
694+ DamageBar .xpos = gOverlayXOppPos ;
695+ ProxyBar .xpos = gOverlayXPos ;
696+ }
697+ #endif
698+
678699 if (NoPlayerControl || gInGameCutsceneActive || gInGameCutsceneDelay )
679700 return ;
680701
@@ -695,27 +716,6 @@ void DisplayOverlays(void)
695716 if (!gDoOverlays )
696717 return ;
697718
698- #ifndef PSX
699- if (gWidescreenOverlayAlign )
700- {
701- // align to PSX-mapped screen coordinates
702- RECT16 emuViewport ;
703- PsyX_GetPSXWidescreenMappedViewport (& emuViewport );
704-
705- // recalc pos
706- gOverlayXPos = 16 + emuViewport .x ;
707- gOverlayXOppPos = emuViewport .w - 16 - PERCENTAGE_BAR_WIDTH ;
708- gMapXOffset = emuViewport .w - 16 - MAP_SIZE_W ;
709-
710- // set up
711- PlayerDamageBar .xpos = gOverlayXPos ;
712- Player2DamageBar .xpos = gOverlayXPos ;
713- FelonyBar .xpos = gOverlayXPos ;
714- DamageBar .xpos = gOverlayXOppPos ;
715- ProxyBar .xpos = gOverlayXPos ;
716- }
717- #endif
718-
719719 if (!gInvincibleCar || ActiveCheats .cheat3 )
720720 {
721721 DrawPercentageBar (& PlayerDamageBar );
0 commit comments