expose 8x resolution (#578)

This commit is contained in:
Logan McNaughton
2025-09-21 13:36:13 +02:00
committed by GitHub
parent d1f28bb7a8
commit fc41e26a6d
3 changed files with 8 additions and 2 deletions
+5
View File
@@ -274,6 +274,11 @@ void rdp_new_processor(GFX_INFO _gfx_info)
flags |= RDP::COMMAND_PROCESSOR_FLAG_SUPER_SAMPLED_DITHER_BIT;
flags |= RDP::COMMAND_PROCESSOR_FLAG_UPSCALING_4X_BIT;
}
else if (gfx_info.upscale == 8)
{
flags |= RDP::COMMAND_PROCESSOR_FLAG_SUPER_SAMPLED_DITHER_BIT;
flags |= RDP::COMMAND_PROCESSOR_FLAG_UPSCALING_8X_BIT;
}
processor = new RDP::CommandProcessor(wsi->get_device(), gfx_info.RDRAM, 0, gfx_info.RDRAM_SIZE, gfx_info.RDRAM_SIZE / 2, flags);
}
+2 -1
View File
@@ -111,6 +111,7 @@ fn settings_window(app: &AppWindow, config: &ui::config::Config) {
1 => 0,
2 => 1,
4 => 2,
8 => 3,
_ => 0,
};
app.set_resolution(combobox_value);
@@ -249,7 +250,7 @@ pub fn save_settings(app: &AppWindow, controller_paths: &[Option<String>]) {
config.emulation.overclock = app.get_overclock_n64_cpu();
config.emulation.disable_expansion_pak = app.get_disable_expansion_pak();
config.emulation.usb = app.get_emulate_usb();
let upscale_values = [1, 2, 4];
let upscale_values = [1, 2, 4, 8];
config.video.upscale = upscale_values[app.get_resolution() as usize];
config.input.emulate_vru = app.get_emulate_vru();
+1 -1
View File
@@ -29,7 +29,7 @@ export component Settings inherits Page {
}
ComboBox {
model: ["1x", "2x", "4x"];
model: ["1x", "2x", "4x", "8x"];
current-index: SettingsData.resolution;
selected => {
SettingsData.resolution = self.current-index;