16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 22:59:19 +02:00

handle different window/framebuffer sizes

This commit is contained in:
milek7
2021-01-24 22:00:30 +01:00
parent 34113bf7e7
commit 90a6b7c3b5
15 changed files with 138 additions and 121 deletions

View File

@@ -70,15 +70,13 @@ global_settings::ConfigParse(cParser &Parser) {
}
else if (token == "width")
{
Parser.getTokens(1, false);
Parser >> iWindowWidth;
Parser >> window_size.x;
}
else if (token == "height")
{
Parser.getTokens(1, false);
Parser >> iWindowHeight;
Parser >> window_size.y;
}
else if (token == "heightbase")
{
@@ -1170,8 +1168,8 @@ global_settings::export_as_text( std::ostream &Output ) const {
export_as_text( Output, "sceneryfile", SceneryFile );
export_as_text( Output, "humanctrlvehicle", local_start_vehicle );
export_as_text( Output, "fieldofview", FieldOfView );
export_as_text( Output, "width", iWindowWidth );
export_as_text( Output, "height", iWindowHeight );
export_as_text( Output, "width", window_size.x );
export_as_text( Output, "height", window_size.y );
export_as_text( Output, "targetfps", targetfps );
export_as_text( Output, "basedrawrange", BaseDrawRange );
export_as_text( Output, "fullscreen", bFullScreen );