File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4677,6 +4677,7 @@ blit_trap(mystique_t *mystique)
4677
4677
int err_l = (int32_t )mystique -> dwgreg .ar [1 ];
4678
4678
int err_r = (int32_t )mystique -> dwgreg .ar [4 ];
4679
4679
const int trans_sel = (mystique -> dwgreg .dwgctrl_running & DWGCTRL_TRANS_MASK ) >> DWGCTRL_TRANS_SHIFT ;
4680
+ bool transc = !!(mystique -> dwgreg .dwgctrl_running & DWGCTRL_TRANSC );
4680
4681
4681
4682
switch (mystique -> dwgreg .dwgctrl_running & DWGCTRL_ATYPE_MASK ) {
4682
4683
case DWGCTRL_ATYPE_BLK :
@@ -4699,6 +4700,7 @@ blit_trap(mystique_t *mystique)
4699
4700
int pattern = mystique -> dwgreg .pattern [yoff ][xoff ];
4700
4701
uint32_t dst ;
4701
4702
4703
+ if (!transc || (transc && pattern ))
4702
4704
switch (mystique -> maccess_running & MACCESS_PWIDTH_MASK ) {
4703
4705
case MACCESS_PWIDTH_8 :
4704
4706
svga -> vram [(mystique -> dwgreg .ydst_lin + x_l ) & mystique -> vram_mask ] = (pattern ? mystique -> dwgreg .fcol : mystique -> dwgreg .bcol ) & 0xff ;
@@ -4770,6 +4772,7 @@ blit_trap(mystique_t *mystique)
4770
4772
uint32_t dst ;
4771
4773
uint32_t old_dst ;
4772
4774
4775
+ if (!transc || (transc && pattern ))
4773
4776
switch (mystique -> maccess_running & MACCESS_PWIDTH_MASK ) {
4774
4777
case MACCESS_PWIDTH_8 :
4775
4778
dst = svga -> vram [(mystique -> dwgreg .ydst_lin + x_l ) & mystique -> vram_mask ];
You can’t perform that action at this time.
0 commit comments