From 417fa5a6e494f6cc83301b8702f5532ca5e77526 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 16 Dec 2017 20:35:05 +0200 Subject: [PATCH] Show negative only scale in CPU speed slider in memory cycle exact mode. --- od-win32/win32gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index c1407e09..4e4dd301 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -11561,7 +11561,7 @@ static void enable_for_cpudlg (HWND hDlg) ew (hDlg, IDC_CPUDATACACHE, workprefs.cpu_model >= 68030 && workprefs.cachesize == 0 && workprefs.cpu_compatible); ew (hDlg, IDC_CPU_PPC, workprefs.cpu_model >= 68040 && (workprefs.ppc_mode == 1 || (workprefs.ppc_mode == 0 && !is_ppc_cpu(&workprefs)))); - SendDlgItemMessage(hDlg, IDC_SPEED, TBM_SETRANGE, TRUE, workprefs.m68k_speed < 0 ? MAKELONG(-9, 0) : MAKELONG(-9, 50)); + SendDlgItemMessage(hDlg, IDC_SPEED, TBM_SETRANGE, TRUE, workprefs.m68k_speed < 0 || (workprefs.cpu_memory_cycle_exact && !workprefs.cpu_cycle_exact) ? MAKELONG(-9, 0) : MAKELONG(-9, 50)); SendDlgItemMessage(hDlg, IDC_SPEED, TBM_SETPAGESIZE, 0, 1); SendDlgItemMessage(hDlg, IDC_SPEED_x86, TBM_SETRANGE, TRUE, MAKELONG(-1, 100)); SendDlgItemMessage(hDlg, IDC_SPEED_x86, TBM_SETPAGESIZE, 0, 1); -- 2.47.3