jak-project/game/kernel/common
Tyler Wilding d819d6da05
Some checks failed
Lint / 📝 Optional Checks (push) Has been cancelled
Build / 🖥️ Windows (push) Has been cancelled
Build / 🐧 Linux (push) Has been cancelled
Build / 🍎 MacOS (push) Has been cancelled
Inform Pages Repo / Generate Documentation (push) Has been cancelled
Lint / 📝 Formatting (push) Has been cancelled
Lint / 📝 Required Checks (push) Has been cancelled
game: cleanup some display settings related code, forbid invalid game-size resolutions (#3601)
Fixes https://github.com/open-goal/jak-project/issues/3563

These users have the following spamming in logs:
> OpenGL error 0x502 S8246 T824C: GL_INVALID_OPERATION error generated.
Source and destination dimensions must be identical with the current
filtering modes.

And the solution is to correctly set their game-size. The way this
change accomplishes that is by confirming whether or not the set
`game-size` is a valid resolution informed by SDL, if not, it defaults
to the monitor's currently set display mode's resolution.

This also moves the selected display id, and the display mode into the
C++ settings -- closer to where it's actually managed and used. I'm
tempted to do this eventually for the resolutions as well but that stuff
is much more burdensome. This hopefully simplifies debugging, reduces
startup flickering, and removes back-and-forth complexity. Hopefully
this makes debugging display related problems easier. It also adds a
bunch more logging to the related code.
2024-07-27 22:29:14 -04:00
..
fileio.cpp [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
fileio.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
kboot.cpp [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
kboot.h [extractor] fix territory being set to wrong value (#2946) 2023-08-30 18:36:10 +01:00
kdgo.cpp Change important printfs to lg::print (#3355) 2024-02-01 18:01:41 +00:00
kdgo.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
kdsnetm.cpp [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
kdsnetm.h [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
kernel_types.h Fix small buzz motor not vibrating correctly (#2846) 2023-07-27 10:46:40 +01:00
klink.cpp deps: update fmt to latest version (#3403) 2024-03-05 22:11:52 -05:00
klink.h [wip] Jak 3 Overlord (#3567) 2024-07-26 09:42:28 -04:00
klisten.cpp Change important printfs to lg::print (#3355) 2024-02-01 18:01:41 +00:00
klisten.h [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
kmachine.cpp game: cleanup some display settings related code, forbid invalid game-size resolutions (#3601) 2024-07-27 22:29:14 -04:00
kmachine.h game: Migrate from GLFW to SDL2 & attempt to rewrite / simplify display and input code (#2397) 2023-06-04 15:34:37 -04:00
kmalloc.cpp [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
kmalloc.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
kmemcard.cpp decomp3: decompile remaining mission code (#3515) 2024-05-16 16:21:44 +02:00
kmemcard.h decompiler: allow jak 3 texture and model extraction (#3080) 2023-10-11 19:32:12 -04:00
kprint.cpp Change important printfs to lg::print (#3355) 2024-02-01 18:01:41 +00:00
kprint.h revamp controller LED in jak 1 + reorganize some pc-settings things + fix some jak 2 decomp (#2719) 2023-06-13 19:26:44 +01:00
kscheme.cpp Make all project targets compile on Intel MacOS (#2780) 2023-07-01 13:30:11 -04:00
kscheme.h [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
ksocket.cpp [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
ksocket.h [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
ksound.cpp jak2: overlord rework (#2544) 2023-04-29 16:13:57 -04:00
ksound.h [ckernel] split by game version (#1559) 2022-06-26 18:17:11 -04:00
memory_layout.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
Ptr.h Fix remaining cpp20 issues (#3375) 2024-02-17 20:16:46 -05:00
Symbol4.h [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00