mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 05:29:17 +02:00
combined rain sound support, soundproofing customization support, event diagnostics enhancement, power grid diagnostics enhancement, windowed full screen mode, ai coupling logic tweaks, minor bug fixes
This commit is contained in:
@@ -763,8 +763,16 @@ eu07_application::init_glfw() {
|
||||
}
|
||||
}
|
||||
|
||||
if( Global.fullscreen_windowed ) {
|
||||
// overwrite resolution settings to match default monitor
|
||||
auto const mode = glfwGetVideoMode( monitor );
|
||||
Global.iWindowWidth = mode->width;
|
||||
Global.iWindowHeight = mode->height;
|
||||
glfwWindowHint( GLFW_DECORATED, GLFW_FALSE );
|
||||
monitor = nullptr;
|
||||
}
|
||||
auto *mainwindow = window(
|
||||
-1, true, Global.iWindowWidth, Global.iWindowHeight, Global.bFullScreen ? monitor : nullptr, true, false );
|
||||
-1, true, Global.iWindowWidth, Global.iWindowHeight, ( Global.bFullScreen ? monitor : nullptr ), true, false );
|
||||
|
||||
if( mainwindow == nullptr ) {
|
||||
ErrorLog( "Bad init: failed to create glfw window" );
|
||||
|
||||
Reference in New Issue
Block a user