From cc5fd7cc73706484a6cd8c250c5d9920e0269e85 Mon Sep 17 00:00:00 2001 From: astoria-d Date: Thu, 12 Sep 2013 12:05:48 +0900 Subject: [PATCH] bg color bug fix --- simulation/ppu/render.vhd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simulation/ppu/render.vhd b/simulation/ppu/render.vhd index 1cb3bd6..c06ee33 100644 --- a/simulation/ppu/render.vhd +++ b/simulation/ppu/render.vhd @@ -514,10 +514,12 @@ begin (spr_ptn_h(7)(0) or spr_ptn_l(7)(0)) = '1' else "0" & disp_attr(1 downto 0) & disp_ptn_h(0) & disp_ptn_l(0) when ppu_mask(PPUSBG) = '1' and cur_y(4) = '0' and + ((disp_ptn_h(0) or disp_ptn_l(0)) = '1') and (cur_x < conv_std_logic_vector(HSCAN, X_SIZE)) and (cur_y < conv_std_logic_vector(VSCAN, X_SIZE)) else "0" & disp_attr(5 downto 4) & disp_ptn_h(0) & disp_ptn_l(0) when ppu_mask(PPUSBG) = '1' and cur_y(4) = '1' and + ((disp_ptn_h(0) or disp_ptn_l(0)) = '1') and (cur_x < conv_std_logic_vector(HSCAN, X_SIZE)) and (cur_y < conv_std_logic_vector(VSCAN, X_SIZE)) else ---else: no output color >> universal bg color output. -- 2.11.0