OSDN Git Service

[VM][FMTOWNS][VRAM] Fix wrong mask value for writing_as_32bit width.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 24 Jan 2020 11:02:55 +0000 (20:02 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 24 Jan 2020 11:02:55 +0000 (20:02 +0900)
source/src/vm/fmtowns/towns_vram.cpp

index dcb80f5..0e14a77 100644 (file)
@@ -586,7 +586,7 @@ void TOWNS_VRAM::write_raw_vram32(uint32_t addr, uint32_t data)
        bool is_wrap = false;
        uint32_t wrap_addr = 0;
        uint32_t wrap_mask;
-       mask = ((addr & 0x02) == 0) ? packed_pixel_mask_reg.w.l : packed_pixel_mask_reg.w.h;
+       mask = packed_pixel_mask_reg.d;
        a.d = data;
        
        if((addr & 0x3ffff) > 0x3fffc) {