From: Toni Wilen Date: Fri, 19 Dec 2025 15:31:50 +0000 (+0200) Subject: Filter numeric text box fix X-Git-Tag: 6020~4 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=fd071166496fd555cec95a4a93e56c5cfd19b43d;p=francis%2Fwinuae.git Filter numeric text box fix --- diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 600af07b..43f4ce53 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -21348,11 +21348,11 @@ static INT_PTR CALLBACK hw3dDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM fdwp->gfx_filter_vert_zoom = fd->gfx_filter_vert_zoom; if (h == ho && getdlgnumber(ho, &val, -99, 99)) { fdwp->gfx_filter_horiz_offset = (float)val; - xSendDlgItemMessage(hDlg, IDC_FILTERHOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERHO, TBM_SETPOS, TRUE, val); } if (h == vo && getdlgnumber(vo, &val, -99, 99)) { fdwp->gfx_filter_vert_offset = (float)val; - xSendDlgItemMessage(hDlg, IDC_FILTERVOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERVO, TBM_SETPOS, TRUE, val); } fd->gfx_filter_horiz_offset = fdwp->gfx_filter_horiz_offset; fd->gfx_filter_vert_offset = fdwp->gfx_filter_vert_offset; @@ -21363,15 +21363,15 @@ static INT_PTR CALLBACK hw3dDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM } if (h == vz && getdlgnumber(vz, &val, 0, MANUAL_SCALE_MAX_RANGE - 1)) { fd->gfx_filter_right_border = fdwp->gfx_filter_right_border = val; - xSendDlgItemMessage(hDlg, IDC_FILTERVZV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERVZ, TBM_SETPOS, TRUE, val); } if (h == ho && getdlgnumber(ho, &val, -1, 700)) { fd->gfx_filter_top_border = fdwp->gfx_filter_top_border = val; - xSendDlgItemMessage(hDlg, IDC_FILTERHOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERHO, TBM_SETPOS, TRUE, val); } if (h == vo && getdlgnumber(vo, &val, 0, 700)) { fd->gfx_filter_bottom_border = fdwp->gfx_filter_bottom_border = val; - xSendDlgItemMessage(hDlg, IDC_FILTERVOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERVO, TBM_SETPOS, TRUE, val); } } else { int maxh = MANUAL_FILTER_MAX_RANGE; @@ -21386,15 +21386,15 @@ static INT_PTR CALLBACK hw3dDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM } if (h == vz && getdlgnumber(vz, &val, minh, maxh)) { currprefs.gfx_xcenter_size = workprefs.gfx_xcenter_size = val; - xSendDlgItemMessage(hDlg, IDC_FILTERVZV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERVZ, TBM_SETPOS, TRUE, val); } if (h == ho && getdlgnumber(ho, &val, minh, maxh)) { currprefs.gfx_xcenter_size = workprefs.gfx_xcenter_size = val; - xSendDlgItemMessage(hDlg, IDC_FILTERHOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERHO, TBM_SETPOS, TRUE, val); } if (h == vo && getdlgnumber(vo, &val, minh, maxh)) { currprefs.gfx_xcenter_size = workprefs.gfx_xcenter_size = val; - xSendDlgItemMessage(hDlg, IDC_FILTERVOV, TBM_SETPOS, TRUE, val); + xSendDlgItemMessage(hDlg, IDC_FILTERVO, TBM_SETPOS, TRUE, val); } } if (!full_property_sheet) {