From bcba2597f3d00aeb2fb9d390b8962464bb42d10f Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sun, 17 Feb 2019 18:42:55 +0100 Subject: [PATCH] Lilypad: Partially revert #2832 DPI scaling doesn't work for the window resize so it made things worse. Maybe once that is fixed this code can be reverted back again. --- plugins/LilyPad/Config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/LilyPad/Config.cpp b/plugins/LilyPad/Config.cpp index 79229454ab..6353571481 100644 --- a/plugins/LilyPad/Config.cpp +++ b/plugins/LilyPad/Config.cpp @@ -492,7 +492,6 @@ void SelChanged(int port, int slot) // Input & Special Bindings: SetWindowTextW(GetDlgItem(hWnd, ID_SPECIAL_INPUTS), config.specialInputs[port][slot] ? L"Hide Special Inputs" : L"Show Special Inputs"); - SetWindowPos(hWndList, NULL, 0, 0, 275, config.specialInputs[port][slot] ? 324 : 440, SWP_NOZORDER | SWP_NOMOVE); for (i = IDC_DPAD; i <= ID_SPECIAL_INPUTS; i++) { hWndTemp = GetDlgItem(hWnd, i); if (hWndTemp) { @@ -1987,7 +1986,9 @@ INT_PTR CALLBACK DialogProc(HWND hWnd, unsigned int msg, WPARAM wParam, LPARAM l } else if (cmd == IDC_CONFIGURE_ON_BIND) { config.configureOnBind = IsDlgButtonChecked(hWnd, IDC_CONFIGURE_ON_BIND); } else if (cmd == ID_SPECIAL_INPUTS) { + // FIXME: Fix DPI Scaling. config.specialInputs[port][slot] = !config.specialInputs[port][slot]; + SetWindowPos(hWndList, NULL, 0, 0, 275, config.specialInputs[port][slot] ? 324 : 440, SWP_NOZORDER | SWP_NOMOVE); ListView_SetColumnWidth(hWndList, 2, LVSCW_AUTOSIZE_USEHEADER); UnselectAll(hWndList); SelChanged(port, slot);