mirror of https://github.com/xemu-project/xemu.git
ui: Add rendering scale option to main menu
This commit is contained in:
parent
5562a484e1
commit
645ab638f0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue