mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 18:12:50 -04:00
Add in-game option to switch fullscreen monitor (#1700)
* Add in-game option to switch fullscreen monitor * mmm undefined memory :) * Fix type consistency * Optimize get_monitor and get_monitor_count since they're called often * Address PR feedback * Track fullscreen mode and minimized state to reduce GLFW calls per frame
This commit is contained in:
@@ -404,6 +404,13 @@ s64 get_screen_vmode_count() {
|
||||
return Gfx::get_screen_vmode_count();
|
||||
}
|
||||
|
||||
/*!
|
||||
* Returns the number of available monitors.
|
||||
*/
|
||||
int get_monitor_count() {
|
||||
return Gfx::get_monitor_count();
|
||||
}
|
||||
|
||||
void mkdir_path(u32 filepath) {
|
||||
auto filepath_str = std::string(Ptr<String>(filepath).c()->data());
|
||||
file_util::create_dir_if_needed_for_file(filepath_str);
|
||||
|
||||
Reference in New Issue
Block a user