Implementation of custom session resolution

Moved presets of resolution to RenderView (framebuffer class is lower level). Changed logic of UI selection of session resolution change.
This commit is contained in:
Bruno Herbelin
2022-12-23 20:23:39 +01:00
parent 8712923bec
commit e2c82af4d6
8 changed files with 178 additions and 110 deletions

View File

@@ -159,6 +159,7 @@ struct RenderConfig
int multisampling;
int ratio;
int res;
int custom_width, custom_height;
float fading;
bool gpu_decoding;
@@ -169,6 +170,8 @@ struct RenderConfig
multisampling = 2;
ratio = 3;
res = 1;
custom_width = 1200;
custom_height = 600;
fading = 0.0;
gpu_decoding = true;
}