mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
Matrox: Simplify some transc checks.
This commit is contained in:
@@ -4492,7 +4492,7 @@ blit_line(mystique_t *mystique, int closed, int autoline)
|
||||
if (x >= mystique->dwgreg.cxleft && x <= mystique->dwgreg.cxright && mystique->dwgreg.ydst_lin >= mystique->dwgreg.ytop && mystique->dwgreg.ydst_lin <= mystique->dwgreg.ybot) {
|
||||
pattern_y = ((mystique->dwgreg.funcnt % (mystique->dwgreg.stylelen + 1)) >> 4) & 0x7;
|
||||
pattern_x = (mystique->dwgreg.funcnt % (mystique->dwgreg.stylelen + 1)) & 0xf;
|
||||
if (!transc || (transc && (mystique->dwgreg.pattern[pattern_y][pattern_x])))
|
||||
if (!transc || (mystique->dwgreg.pattern[pattern_y][pattern_x]))
|
||||
switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) {
|
||||
case MACCESS_PWIDTH_8:
|
||||
src = mystique->dwgreg.pattern[pattern_y][pattern_x] ? mystique->dwgreg.fcol : mystique->dwgreg.bcol;
|
||||
@@ -4813,7 +4813,7 @@ blit_trap(mystique_t *mystique)
|
||||
int pattern = mystique->dwgreg.pattern[yoff][xoff];
|
||||
uint32_t dst;
|
||||
|
||||
if (!transc || (transc && pattern))
|
||||
if (!transc || pattern)
|
||||
switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) {
|
||||
case MACCESS_PWIDTH_8:
|
||||
svga->vram[(mystique->dwgreg.ydst_lin + x_l) & mystique->vram_mask] = (pattern ? mystique->dwgreg.fcol : mystique->dwgreg.bcol) & 0xff;
|
||||
@@ -4885,7 +4885,7 @@ blit_trap(mystique_t *mystique)
|
||||
uint32_t dst;
|
||||
uint32_t old_dst;
|
||||
|
||||
if (!transc || (transc && pattern))
|
||||
if (!transc || pattern)
|
||||
switch (mystique->maccess_running & MACCESS_PWIDTH_MASK) {
|
||||
case MACCESS_PWIDTH_8:
|
||||
dst = svga->vram[(mystique->dwgreg.ydst_lin + x_l) & mystique->vram_mask];
|
||||
|
||||
Reference in New Issue
Block a user