From 2847e8cac0d1474b499e1ae7295b4750c949340e Mon Sep 17 00:00:00 2001 From: HIllya51 <1871535768@qq.com> Date: Sat, 20 Jan 2024 13:54:59 +0800 Subject: [PATCH] lossless --- .../LunaTranslator/gui/settingpage_xianshishezhi.py | 2 +- plugins/shareddllproxy/lossless.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/settingpage_xianshishezhi.py b/LunaTranslator/LunaTranslator/gui/settingpage_xianshishezhi.py index 4176c6f1..3ec56992 100644 --- a/LunaTranslator/LunaTranslator/gui/settingpage_xianshishezhi.py +++ b/LunaTranslator/LunaTranslator/gui/settingpage_xianshishezhi.py @@ -242,7 +242,7 @@ def setTabThree_lazy(self) : [('',4),('缩放系数',4),(sf,2)], [('',4),('缩放前调整大小',4),(rbs,2)], [('',4),('视窗模式',4),(wm,2)], - [('缩放类型',4),(getsimplecombobox(['AMD FSR','NVIDIA Image Scaling','整数缩放','近邻缩放','xBR','Anime4K','锐化双线性','LS1','Bicubic CAS'],globalconfig['lossless'],'scalingType',callback=lambda _:setsubtype()),6)], + [('缩放类型',4),(getsimplecombobox(['Off','AMD FSR','NVIDIA Image Scaling','整数缩放','近邻缩放','xBR','Anime4K','锐化双线性','LS1','Bicubic CAS'],globalconfig['lossless'],'scalingType',callback=lambda _:setsubtype()),6)], [('',4),('锐度',4),(sharp,2)], [('',4),('优化版本',4),(sub1,2)], [('',4),('尺寸',4),(sub2,2)], diff --git a/plugins/shareddllproxy/lossless.cpp b/plugins/shareddllproxy/lossless.cpp index a291b495..8015c036 100644 --- a/plugins/shareddllproxy/lossless.cpp +++ b/plugins/shareddllproxy/lossless.cpp @@ -212,9 +212,9 @@ int losslesswmain(int argc, wchar_t* wargv[]) SetDriverSettings(); if(version==1) - ((ApplySettings_t1)ApplySettings)(scalingMode, scalingFitMode, scalingType, scalingSubtype, scaleFactor, resizeBeforeScale, windowedMode, sharpness, VRS, clipCursor, cursorSensitivity, hideCursor, scaleCursor, doubleBuffering, vrrSupport, hdrSupport, allowTearing, legacyCaptureApi, drawFps, gpuId, displayId, captureOffsetLeft, captureOffsetTop, captureOffsetRight, captureOffsetBottom, multiDisplayMode); + ((ApplySettings_t1)ApplySettings)(scalingMode-1, scalingFitMode, scalingType, scalingSubtype, scaleFactor, resizeBeforeScale, windowedMode, sharpness, VRS, clipCursor, cursorSensitivity, hideCursor, scaleCursor, doubleBuffering, vrrSupport, hdrSupport, allowTearing, legacyCaptureApi, drawFps, gpuId, displayId, captureOffsetLeft, captureOffsetTop, captureOffsetRight, captureOffsetBottom, multiDisplayMode); else if(version==2) - ((ApplySettings_t2)ApplySettings)(scalingMode, scalingFitMode, scalingType, scalingSubtype, scaleFactor, resizeBeforeScale, windowedMode, sharpness, VRS,frameGeneration, clipCursor, cursorSensitivity, hideCursor, scaleCursor, doubleBuffering, vrrSupport, hdrSupport, allowTearing, legacyCaptureApi, drawFps, gpuId, displayId, captureOffsetLeft, captureOffsetTop, captureOffsetRight, captureOffsetBottom, multiDisplayMode); + ((ApplySettings_t2)ApplySettings)(scalingMode-1, scalingFitMode, scalingType, scalingSubtype, scaleFactor, resizeBeforeScale, windowedMode, sharpness, VRS,frameGeneration, clipCursor, cursorSensitivity, hideCursor, scaleCursor, doubleBuffering, vrrSupport, hdrSupport, allowTearing, legacyCaptureApi, drawFps, gpuId, displayId, captureOffsetLeft, captureOffsetTop, captureOffsetRight, captureOffsetBottom, multiDisplayMode); else if(version==3) ((ApplySettings_t3)ApplySettings)(scalingMode, scalingFitMode, scalingType, scalingSubtype, scaleFactor, resizeBeforeScale, windowedMode, sharpness, VRS,frameGeneration, clipCursor, cursorSensitivity, hideCursor, scaleCursor,syncInterval, doubleBuffering, vrrSupport, hdrSupport, allowTearing, legacyCaptureApi, drawFps, gpuId, displayId, captureOffsetLeft, captureOffsetTop, captureOffsetRight, captureOffsetBottom, multiDisplayMode); SetForegroundWindow(hwnd);