Support additional screen layouts.
Allows users to choose a single screen layout or a large screen layout. Adds a configuration option to change the prominent screen.
This commit is contained in:
parent
1f70365faa
commit
2b1654ad9b
16 changed files with 522 additions and 132 deletions
|
@ -23,6 +23,8 @@ void ConfigureGraphics::setConfiguration() {
|
|||
ui->toggle_shader_jit->setChecked(Settings::values.use_shader_jit);
|
||||
ui->toggle_scaled_resolution->setChecked(Settings::values.use_scaled_resolution);
|
||||
ui->toggle_vsync->setChecked(Settings::values.use_vsync);
|
||||
ui->layout_combobox->setCurrentIndex(static_cast<int>(Settings::values.layout_option));
|
||||
ui->swap_screen->setChecked(Settings::values.swap_screen);
|
||||
}
|
||||
|
||||
void ConfigureGraphics::applyConfiguration() {
|
||||
|
@ -30,5 +32,7 @@ void ConfigureGraphics::applyConfiguration() {
|
|||
Settings::values.use_shader_jit = ui->toggle_shader_jit->isChecked();
|
||||
Settings::values.use_scaled_resolution = ui->toggle_scaled_resolution->isChecked();
|
||||
Settings::values.use_vsync = ui->toggle_vsync->isChecked();
|
||||
Settings::values.layout_option = static_cast<Settings::LayoutOption>(ui->layout_combobox->currentIndex());
|
||||
Settings::values.swap_screen = ui->swap_screen->isChecked();
|
||||
Settings::Apply();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue