mirror of https://github.com/PCSX2/pcsx2.git
Resolve cases where GUI values are not updated when adjusting sliders with the scroll wheel.
This commit is contained in:
parent
a5db116d00
commit
94b822df3b
|
@ -462,13 +462,14 @@ private:
|
||||||
wmId = LOWORD(wParam);
|
wmId = LOWORD(wParam);
|
||||||
wmEvent = HIWORD(wParam);
|
wmEvent = HIWORD(wParam);
|
||||||
switch (wmId) {
|
switch (wmId) {
|
||||||
//case TB_ENDTRACK:
|
|
||||||
//case TB_THUMBPOSITION:
|
|
||||||
case TB_LINEUP:
|
case TB_LINEUP:
|
||||||
case TB_LINEDOWN:
|
case TB_LINEDOWN:
|
||||||
case TB_PAGEUP:
|
case TB_PAGEUP:
|
||||||
case TB_PAGEDOWN:
|
case TB_PAGEDOWN:
|
||||||
|
case TB_TOP:
|
||||||
|
case TB_BOTTOM:
|
||||||
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
||||||
|
case TB_THUMBPOSITION:
|
||||||
case TB_THUMBTRACK: {
|
case TB_THUMBTRACK: {
|
||||||
wchar_t temp[128];
|
wchar_t temp[128];
|
||||||
if (wmEvent < 10)
|
if (wmEvent < 10)
|
||||||
|
|
|
@ -374,20 +374,18 @@ BOOL CALLBACK ConfigProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
wmEvent = LOWORD(wParam);
|
wmEvent = LOWORD(wParam);
|
||||||
HWND hwndDlg = (HWND)lParam;
|
HWND hwndDlg = (HWND)lParam;
|
||||||
|
|
||||||
// TB_THUMBTRACK passes the curpos in wParam. Other messages
|
|
||||||
// have to use TBM_GETPOS, so they will override this assignment (see below)
|
|
||||||
|
|
||||||
int curpos = HIWORD(wParam);
|
int curpos = HIWORD(wParam);
|
||||||
|
|
||||||
switch (wmEvent) {
|
switch (wmEvent) {
|
||||||
//case TB_ENDTRACK:
|
|
||||||
//case TB_THUMBPOSITION:
|
|
||||||
case TB_LINEUP:
|
case TB_LINEUP:
|
||||||
case TB_LINEDOWN:
|
case TB_LINEDOWN:
|
||||||
case TB_PAGEUP:
|
case TB_PAGEUP:
|
||||||
case TB_PAGEDOWN:
|
case TB_PAGEDOWN:
|
||||||
|
case TB_TOP:
|
||||||
|
case TB_BOTTOM:
|
||||||
curpos = (int)SendMessage(hwndDlg, TBM_GETPOS, 0, 0);
|
curpos = (int)SendMessage(hwndDlg, TBM_GETPOS, 0, 0);
|
||||||
|
|
||||||
|
case TB_THUMBPOSITION:
|
||||||
case TB_THUMBTRACK:
|
case TB_THUMBTRACK:
|
||||||
Clampify(curpos,
|
Clampify(curpos,
|
||||||
(int)SendMessage(hwndDlg, TBM_GETRANGEMIN, 0, 0),
|
(int)SendMessage(hwndDlg, TBM_GETRANGEMIN, 0, 0),
|
||||||
|
|
|
@ -346,13 +346,14 @@ private:
|
||||||
wmId = LOWORD(wParam);
|
wmId = LOWORD(wParam);
|
||||||
wmEvent = HIWORD(wParam);
|
wmEvent = HIWORD(wParam);
|
||||||
switch (wmId) {
|
switch (wmId) {
|
||||||
//case TB_ENDTRACK:
|
|
||||||
//case TB_THUMBPOSITION:
|
|
||||||
case TB_LINEUP:
|
case TB_LINEUP:
|
||||||
case TB_LINEDOWN:
|
case TB_LINEDOWN:
|
||||||
case TB_PAGEUP:
|
case TB_PAGEUP:
|
||||||
case TB_PAGEDOWN:
|
case TB_PAGEDOWN:
|
||||||
|
case TB_TOP:
|
||||||
|
case TB_BOTTOM:
|
||||||
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
||||||
|
case TB_THUMBPOSITION:
|
||||||
case TB_THUMBTRACK: {
|
case TB_THUMBTRACK: {
|
||||||
wchar_t temp[128];
|
wchar_t temp[128];
|
||||||
if (wmEvent < 2)
|
if (wmEvent < 2)
|
||||||
|
|
|
@ -239,13 +239,14 @@ private:
|
||||||
wmId = LOWORD(wParam);
|
wmId = LOWORD(wParam);
|
||||||
wmEvent = HIWORD(wParam);
|
wmEvent = HIWORD(wParam);
|
||||||
switch (wmId) {
|
switch (wmId) {
|
||||||
//case TB_ENDTRACK:
|
|
||||||
//case TB_THUMBPOSITION:
|
|
||||||
case TB_LINEUP:
|
case TB_LINEUP:
|
||||||
case TB_LINEDOWN:
|
case TB_LINEDOWN:
|
||||||
case TB_PAGEUP:
|
case TB_PAGEUP:
|
||||||
case TB_PAGEDOWN:
|
case TB_PAGEDOWN:
|
||||||
|
case TB_TOP:
|
||||||
|
case TB_BOTTOM:
|
||||||
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
wmEvent = (int)SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
|
||||||
|
case TB_THUMBPOSITION:
|
||||||
case TB_THUMBTRACK:
|
case TB_THUMBTRACK:
|
||||||
if (wmEvent < 3)
|
if (wmEvent < 3)
|
||||||
wmEvent = 3;
|
wmEvent = 3;
|
||||||
|
|
Loading…
Reference in New Issue