diff --git a/src/core/cpu_newrec_compiler_aarch32.cpp b/src/core/cpu_newrec_compiler_aarch32.cpp index 376d88e07..45f2e1ad8 100644 --- a/src/core/cpu_newrec_compiler_aarch32.cpp +++ b/src/core/cpu_newrec_compiler_aarch32.cpp @@ -349,9 +349,9 @@ void CPU::NewRec::AArch32Compiler::GenerateCall(const void* func, s32 arg1reg /* { if (arg1reg >= 0 && arg1reg != static_cast(RARG1.GetCode())) armAsm->mov(RARG1, Register(arg1reg)); - if (arg1reg >= 0 && arg2reg != static_cast(RARG2.GetCode())) + if (arg2reg >= 0 && arg2reg != static_cast(RARG2.GetCode())) armAsm->mov(RARG2, Register(arg2reg)); - if (arg1reg >= 0 && arg3reg != static_cast(RARG3.GetCode())) + if (arg3reg >= 0 && arg3reg != static_cast(RARG3.GetCode())) armAsm->mov(RARG3, Register(arg3reg)); EmitCall(func); } diff --git a/src/core/cpu_newrec_compiler_aarch64.cpp b/src/core/cpu_newrec_compiler_aarch64.cpp index 3a34099de..c3fb3bd99 100644 --- a/src/core/cpu_newrec_compiler_aarch64.cpp +++ b/src/core/cpu_newrec_compiler_aarch64.cpp @@ -321,9 +321,9 @@ void CPU::NewRec::AArch64Compiler::GenerateCall(const void* func, s32 arg1reg /* { if (arg1reg >= 0 && arg1reg != static_cast(RXARG1.GetCode())) armAsm->mov(RXARG1, XRegister(arg1reg)); - if (arg1reg >= 0 && arg2reg != static_cast(RXARG2.GetCode())) + if (arg2reg >= 0 && arg2reg != static_cast(RXARG2.GetCode())) armAsm->mov(RXARG2, XRegister(arg2reg)); - if (arg1reg >= 0 && arg3reg != static_cast(RXARG3.GetCode())) + if (arg3reg >= 0 && arg3reg != static_cast(RXARG3.GetCode())) armAsm->mov(RXARG3, XRegister(arg3reg)); EmitCall(func); } diff --git a/src/core/cpu_newrec_compiler_riscv64.cpp b/src/core/cpu_newrec_compiler_riscv64.cpp index ec878a7f3..6ae4cf24c 100644 --- a/src/core/cpu_newrec_compiler_riscv64.cpp +++ b/src/core/cpu_newrec_compiler_riscv64.cpp @@ -572,9 +572,9 @@ void CPU::NewRec::RISCV64Compiler::GenerateCall(const void* func, s32 arg1reg /* { if (arg1reg >= 0 && arg1reg != static_cast(RARG1.Index())) rvAsm->MV(RARG1, GPR(arg1reg)); - if (arg1reg >= 0 && arg2reg != static_cast(RARG2.Index())) + if (arg2reg >= 0 && arg2reg != static_cast(RARG2.Index())) rvAsm->MV(RARG2, GPR(arg2reg)); - if (arg1reg >= 0 && arg3reg != static_cast(RARG3.Index())) + if (arg3reg >= 0 && arg3reg != static_cast(RARG3.Index())) rvAsm->MV(RARG3, GPR(arg3reg)); EmitCall(func); } diff --git a/src/core/cpu_newrec_compiler_x64.cpp b/src/core/cpu_newrec_compiler_x64.cpp index 08940d3f9..81385c690 100644 --- a/src/core/cpu_newrec_compiler_x64.cpp +++ b/src/core/cpu_newrec_compiler_x64.cpp @@ -214,9 +214,9 @@ void CPU::NewRec::X64Compiler::GenerateCall(const void* func, s32 arg1reg /*= -1 { if (arg1reg >= 0 && arg1reg != static_cast(RXARG1.getIdx())) cg->mov(RXARG1, Reg64(arg1reg)); - if (arg1reg >= 0 && arg2reg != static_cast(RXARG2.getIdx())) + if (arg2reg >= 0 && arg2reg != static_cast(RXARG2.getIdx())) cg->mov(RXARG2, Reg64(arg2reg)); - if (arg1reg >= 0 && arg3reg != static_cast(RXARG3.getIdx())) + if (arg3reg >= 0 && arg3reg != static_cast(RXARG3.getIdx())) cg->mov(RXARG3, Reg64(arg3reg)); cg->call(func); } diff --git a/src/core/fullscreen_ui.cpp b/src/core/fullscreen_ui.cpp index d0a57b8c8..fe3b01f96 100644 --- a/src/core/fullscreen_ui.cpp +++ b/src/core/fullscreen_ui.cpp @@ -4822,7 +4822,7 @@ void FullscreenUI::DrawPostProcessingSettingsPage() case 3: { - changed = ImGui::SliderInt2("##value", &opt.value[0].int_value, opt.min_value[0].int_value, + changed = ImGui::SliderInt3("##value", &opt.value[0].int_value, opt.min_value[0].int_value, opt.max_value[0].int_value); } break;