GSdx: Dithering setting Hotkey

This commit is contained in:
KrossX 2020-05-11 13:12:24 -03:00 committed by lightningterror
parent 8b1eb3b456
commit 61c4f9399a
4 changed files with 8 additions and 2 deletions

View File

@ -49,6 +49,7 @@ GSRenderer::GSRenderer()
m_fxaa = theApp.GetConfigB("fxaa"); m_fxaa = theApp.GetConfigB("fxaa");
m_shaderfx = theApp.GetConfigB("shaderfx"); m_shaderfx = theApp.GetConfigB("shaderfx");
m_shadeboost = theApp.GetConfigB("ShadeBoost"); m_shadeboost = theApp.GetConfigB("ShadeBoost");
m_dithering = theApp.GetConfigI("dithering_ps2"); // 0 off, 1 auto, 2 auto no scale
} }
GSRenderer::~GSRenderer() GSRenderer::~GSRenderer()
@ -572,6 +573,7 @@ void GSRenderer::KeyEvent(GSKeyEventData* e)
#define VK_DELETE XK_Delete #define VK_DELETE XK_Delete
#define VK_INSERT XK_Insert #define VK_INSERT XK_Insert
#define VK_PRIOR XK_Prior #define VK_PRIOR XK_Prior
#define VK_NEXT XK_Next
#define VK_HOME XK_Home #define VK_HOME XK_Home
#endif #endif
@ -611,6 +613,11 @@ void GSRenderer::KeyEvent(GSKeyEventData* e)
theApp.SetConfig("shaderfx", m_shaderfx); theApp.SetConfig("shaderfx", m_shaderfx);
printf("GSdx: External post-processing is now %s.\n", m_shaderfx ? "enabled" : "disabled"); printf("GSdx: External post-processing is now %s.\n", m_shaderfx ? "enabled" : "disabled");
return; return;
case VK_NEXT: // As requested by Prafull, to be removed later
char dither_msg[3][16] = {"disabled", "auto", "auto unscaled"};
m_dithering = (m_dithering+1)%3;
printf("GSdx: Dithering is now %s.\n", dither_msg[m_dithering]);
return;
} }
} }

View File

@ -38,6 +38,7 @@ class GSRenderer : public GSState
bool m_control_key; bool m_control_key;
protected: protected:
int m_dithering;
int m_interlace; int m_interlace;
int m_aspectratio; int m_aspectratio;
int m_vsync; int m_vsync;

View File

@ -41,7 +41,6 @@ GSRendererHW::GSRendererHW(GSTextureCache* tc)
m_upscale_multiplier = theApp.GetConfigI("upscale_multiplier"); m_upscale_multiplier = theApp.GetConfigI("upscale_multiplier");
m_large_framebuffer = theApp.GetConfigB("large_framebuffer"); m_large_framebuffer = theApp.GetConfigB("large_framebuffer");
m_accurate_date = theApp.GetConfigI("accurate_date"); m_accurate_date = theApp.GetConfigI("accurate_date");
m_dithering = theApp.GetConfigI("dithering_ps2"); // 0 off, 1 auto, 2 auto no scale
if (theApp.GetConfigB("UserHacks")) { if (theApp.GetConfigB("UserHacks")) {
m_userhacks_enabled_gs_mem_clear = !theApp.GetConfigB("UserHacks_Disable_Safe_Features"); m_userhacks_enabled_gs_mem_clear = !theApp.GetConfigB("UserHacks_Disable_Safe_Features");

View File

@ -158,7 +158,6 @@ protected:
int m_accurate_date; int m_accurate_date;
int m_sw_blending; int m_sw_blending;
int m_dithering;
bool m_channel_shuffle; bool m_channel_shuffle;