From: Toni Wilen Date: Sun, 7 Aug 2022 17:52:59 +0000 (+0300) Subject: Fix CPU panel FPU 64/80/softfloat GUI element. X-Git-Tag: 41000~164 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3de902db017133133238a91c763bdae242b32890;p=francis%2Fwinuae.git Fix CPU panel FPU 64/80/softfloat GUI element. --- diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 310dcb37..5aa1b5b6 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -13134,7 +13134,6 @@ static void values_to_cpudlg(HWND hDlg, WPARAM wParam) CheckDlgButton (hDlg, IDC_CPUDATACACHE, workprefs.cpu_data_cache); CheckDlgButton (hDlg, IDC_COMPATIBLE_FPU, workprefs.fpu_strict); CheckDlgButton (hDlg, IDC_FPU_UNIMPLEMENTED, !workprefs.fpu_no_unimplemented || workprefs.cachesize); - xSendDlgItemMessage(hDlg, IDC_FPU_MODE, CB_SETCURSEL, workprefs.fpu_mode < 0 ? 1 : (workprefs.fpu_mode > 0 ? 2 : 0), 0); CheckDlgButton (hDlg, IDC_CPU_UNIMPLEMENTED, !workprefs.int_no_unimplemented || workprefs.cachesize); xSendDlgItemMessage (hDlg, IDC_CPUIDLE, TBM_SETPOS, TRUE, workprefs.cpu_idle == 0 ? 0 : 12 - workprefs.cpu_idle / 15); _stprintf(buffer, _T("%d%%"), (workprefs.cpu_idle == 0 ? 0 : 12 - workprefs.cpu_idle / 15) * 10); @@ -13421,6 +13420,8 @@ static INT_PTR CALLBACK CPUDlgProc (HWND hDlg, UINT msg, WPARAM wParam, LPARAM l xSendDlgItemMessage(hDlg, IDC_FPU_MODE, CB_ADDSTRING, 0, (LPARAM)_T("Host (64-bit)")); xSendDlgItemMessage(hDlg, IDC_FPU_MODE, CB_ADDSTRING, 0, (LPARAM)_T("Host (80-bit)")); xSendDlgItemMessage(hDlg, IDC_FPU_MODE, CB_ADDSTRING, 0, (LPARAM)_T("Softfloat (80-bit)")); + idx = workprefs.fpu_mode < 0 ? 1 : (workprefs.fpu_mode > 0 ? 2 : 0); + xSendDlgItemMessage(hDlg, IDC_FPU_MODE, CB_SETCURSEL, idx, 0); idx = 5; if (workprefs.cpu_clock_multiplier >= 1 << 8) {