diff --git a/goal_src/jak2/engine/game/game-info.gc b/goal_src/jak2/engine/game/game-info.gc index de62372ab0..2dbae61776 100644 --- a/goal_src/jak2/engine/game/game-info.gc +++ b/goal_src/jak2/engine/game/game-info.gc @@ -890,17 +890,19 @@ (let ((s3-0 (new 'stack-no-clear 'vector4w))) (set! (-> s3-0 quad) (the-as uint128 0)) (when (transform-point-qword! s3-0 (the-as vector arg0)) - (let ((s5-0 (new - 'stack - 'font-context - *font-default-matrix* - (+ (the int (/ (the float (+ (/ (-> s3-0 x) 16) -1792)) (-> *video-params* relative-x-scale))) -48) - (+ (/ (-> s3-0 y) 16) -1855) - 0.0 - (font-color orange) - (font-flags shadow kerning) - ) - ) + ;; added for pc port, don't scale for high aspect + (let* ((scale (if (-> *pc-settings* use-vis?) (-> *video-params* relative-x-scale) 1.0)) + (s5-0 (new + 'stack + 'font-context + *font-default-matrix* + (+ (the int (/ (the float (+ (/ (-> s3-0 x) 16) -1792)) scale)) -48) + (+ (/ (-> s3-0 y) 16) -1855) + 0.0 + (font-color orange) + (font-flags shadow kerning) + ) + ) ) (set! (-> s5-0 scale) (lerp-scale 0.6 1.0 (the-as float arg1) 50.0 8000.0)) (let ((v1-9 s5-0)) diff --git a/goal_src/jak2/engine/ui/hud.gc b/goal_src/jak2/engine/ui/hud.gc index 958e1e7e2d..123e03be1a 100644 --- a/goal_src/jak2/engine/ui/hud.gc +++ b/goal_src/jak2/engine/ui/hud.gc @@ -1146,7 +1146,10 @@ ) (defun set-hud-piece-position! ((arg0 hud-sprite) (arg1 int) (arg2 int)) - (set! (-> arg0 pos x) arg1) + ;; og:preserve-this changed for pc port, scale hud for custom aspect + (if (or (not PC_PORT) (-> *pc-settings* use-vis?) (> arg1 200)) + (set! (-> arg0 pos x) arg1) + (set! (-> arg0 pos x) (the int (* (the float arg1) (-> *video-params* relative-x-scale))))) (set! (-> arg0 pos y) arg2) 0 (none)