ui: Add rendering scale option to main menu

This commit is contained in:
Matt Borgerson 2021-07-20 03:00:27 -07:00 committed by mborgerson
parent 5562a484e1
commit 645ab638f0
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ extern "C" {
#include "sysemu/runstate.h"
#include "hw/xbox/mcpx/apu_debug.h"
#include "hw/xbox/nv2a/debug.h"
#include "hw/xbox/nv2a/nv2a.h"
#include "net/pcap.h"
#undef typename
@ -2074,6 +2075,11 @@ static void ShowMainMenu()
g_trigger_style_update = true;
}
int rendering_scale = nv2a_get_surface_scale_factor() - 1;
if (ImGui::Combo("Rendering Scale", &rendering_scale, "1x\0" "2x\0" "3x\0" "4x\0")) {
nv2a_set_surface_scale_factor(rendering_scale+1);
}
if (ImGui::Combo("Scaling Mode", &scaling_mode, "Center\0Scale\0Stretch\0")) {
xemu_settings_set_enum(XEMU_SETTINGS_DISPLAY_SCALE, scaling_mode);
xemu_settings_save();