OSDN Git Service

[VM][FMTOWNS][CRTC] Fix forcing to calcurate CRTC clock per setting.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 16 May 2020 16:53:40 +0000 (01:53 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 16 May 2020 16:53:40 +0000 (01:53 +0900)
source/src/vm/fmtowns/towns_crtc.cpp

index f283179..af993ac 100644 (file)
@@ -442,7 +442,7 @@ void TOWNS_CRTC::set_crtc_clock(uint16_t val)
        static const double clocks[] = {
                28.6363e6, 24.5454e6, 25.175e6, 21.0525e6
        };
-       if(clocks[clksel] != crtc_clock) {
+       if((1.0e6 / clocks[clksel]) != crtc_clock) {
                crtc_clock = 1.0e6 / clocks[clksel];
                req_recalc = true;
        }