mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-21 15:20:00 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user