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

@@ -160,6 +160,8 @@ void Settings::Save(uint64_t runtime)
RenderNode->SetAttribute("gpu_decoding", application.render.gpu_decoding);
RenderNode->SetAttribute("ratio", application.render.ratio);
RenderNode->SetAttribute("res", application.render.res);
RenderNode->SetAttribute("custom_width", application.render.custom_width);
RenderNode->SetAttribute("custom_height", application.render.custom_height);
pRoot->InsertEndChild(RenderNode);
// Record
@@ -439,6 +441,8 @@ void Settings::Load()
rendernode->QueryBoolAttribute("gpu_decoding", &application.render.gpu_decoding);
rendernode->QueryIntAttribute("ratio", &application.render.ratio);
rendernode->QueryIntAttribute("res", &application.render.res);
rendernode->QueryIntAttribute("custom_width", &application.render.custom_width);
rendernode->QueryIntAttribute("custom_height", &application.render.custom_height);
}
// Record