]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix CPU panel FPU 64/80/softfloat GUI element.
authorToni Wilen <twilen@winuae.net>
Sun, 7 Aug 2022 17:52:59 +0000 (20:52 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 7 Aug 2022 17:52:59 +0000 (20:52 +0300)
od-win32/win32gui.cpp

index 310dcb37742680ce30ab41fb2bf2ee66d9dcbc05..5aa1b5b6f0c430ffd2c2d57274673560790787fd 100644 (file)
@@ -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) {