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:
Ethan Lafrenais
2022-07-31 13:31:17 -04:00
committed by GitHub
parent 329bde229e
commit 88856ba5e0
19 changed files with 315 additions and 95 deletions
-6
View File
@@ -61,12 +61,6 @@ int GfxDisplay::height() {
return h;
}
void GfxDisplay::backup_params() {
get_size(&m_width, &m_height);
get_position(&m_xpos, &m_ypos);
fmt::print("backed up window: {},{} {}x{}\n", m_xpos, m_ypos, m_width, m_height);
}
/*
********************************
* DISPLAY