OSDN Git Service

[VM][FMTOWNS][CRTC] Fix overkill initializing.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 5 May 2020 19:44:32 +0000 (04:44 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Tue, 5 May 2020 19:44:32 +0000 (04:44 +0900)
source/src/vm/fmtowns/towns_crtc.cpp

index 095ea73..84c02cb 100644 (file)
@@ -188,6 +188,8 @@ void TOWNS_CRTC::reset()
        for(int i = 0; i < 4; i++) {
                frame_offset[i] = 0;
                line_offset[i] = 640;
+       }
+       for(int i = 0; i < 2; i++) {
                vstart_addr[i] = 0;
                hstart_words[i] = 0;
                head_address[i] = 0;