mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
jak1: fix aspect settings selection (#4101)
I was changing aspect ratios when I noticed something was off, getting different results for the same setting. On screen positions are determined by both the aspect ratio you select as well as the last time you selected a PS2 aspect ratio. You get different result by choosing 4x3 (PS2), then 16:9, compared to 16:9 (PS2), then 16:9. The same is true for all aspects and Fit to Screen. By contrast, Jak 2 always uses the 'aspect4x3 scale factor for all custom aspects, making the menu option you select consistent. There is an intention to use 4x3 for custom aspects [here](https://github.com/open-goal/jak-project/blob/abf27960f0033436b066c712c787160d2c9a5346/goal_src/jak1/pc/progress-pc.gc#L2618); when `fit-to-screen` then `(set-aspect-ratio 'aspect4x3)`. However it needs the extra lines to take effect. This is helpful as the only cause of vertical misalignment on memory cards is using PS2 16x9 on custom aspects: <img width="1800" height="1013" alt="2" src="https://github.com/user-attachments/assets/5a5e5ea9-00fc-439b-b3d6-dcf3419a8bd1" /> <img width="1800" height="1013" alt="4" src="https://github.com/user-attachments/assets/4876d267-5a44-4074-bd63-d7a5d8ac02e5" />
This commit is contained in:
@@ -2615,6 +2615,7 @@
|
||||
((= (-> options (-> obj option-index) name) (text-id fit-to-screen))
|
||||
(set-aspect! *pc-settings* 4 3)
|
||||
(false! (-> *pc-settings* use-vis?))
|
||||
(set! (-> *setting-control* default aspect-ratio) 'aspect4x3)
|
||||
(set-aspect-ratio 'aspect4x3)
|
||||
(true! (-> *pc-settings* aspect-ratio-auto?)))
|
||||
((= newx -1.0)
|
||||
@@ -2627,7 +2628,9 @@
|
||||
(true! (-> *pc-settings* use-vis?))
|
||||
(set! (-> *setting-control* default aspect-ratio) 'aspect16x9)
|
||||
(set-aspect-ratio 'aspect16x9))
|
||||
(else (set-aspect! *pc-settings* newx newy))))
|
||||
(else
|
||||
(set! (-> *setting-control* default aspect-ratio) 'aspect4x3)
|
||||
(set-aspect! *pc-settings* newx newy))))
|
||||
(cpad-clear! 0 x)
|
||||
(cpad-clear! 0 circle)
|
||||
(sound-play "cursor-options")
|
||||
|
||||
Reference in New Issue
Block a user