summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2021-06-10 21:31:35 -0500
committer cracyc <cracyc@users.noreply.github.com>2021-06-10 21:31:35 -0500
commitfe05a94c29ce41a30380dd0dac0d5a8d7e6beadf (patch)
treef16a82483235a0853e3bf9000ead9605caaa1e31
parent3771840ab877b64caf7aaade7b888f08c2ef4d01 (diff)
x68k: remove unneeded
-rw-r--r--src/mame/includes/x68k.h1
-rw-r--r--src/mame/video/x68k.cpp11
2 files changed, 1 insertions, 11 deletions
diff --git a/src/mame/includes/x68k.h b/src/mame/includes/x68k.h
index f22d422b1c1..45a68de4305 100644
--- a/src/mame/includes/x68k.h
+++ b/src/mame/includes/x68k.h
@@ -198,7 +198,6 @@ protected:
int bg_hshift;
int bg_vshift;
int bg_hvres; // bits 0,1 = H-Res, bits 2,3 = V-Res, bit 4 = L/H Freq (0=15.98kHz, 1=31.5kHz)
- int bg_double; // 1 if PCG is to be doubled.
} m_video;
struct
{
diff --git a/src/mame/video/x68k.cpp b/src/mame/video/x68k.cpp
index f0d7303f134..2ac1a4e9e4a 100644
--- a/src/mame/video/x68k.cpp
+++ b/src/mame/video/x68k.cpp
@@ -148,15 +148,6 @@ void x68k_state::spritereg_w(offs_t offset, uint16_t data, uint16_t mem_mask)
break;
case 0x408: // BG H/V-Res
m_video.bg_hvres = data & 0x1f;
- if(data != 0xff)
- { // Handle when the PCG is using 256 and the CRTC is using 512
- if((m_video.bg_hvres & 0x0c) == 0x00 && m_crtc->vfactor() == 1)
- m_video.bg_double = 2;
- else
- m_video.bg_double = 1;
- }
- else
- m_video.bg_double = 1;
break;
}
}
@@ -546,7 +537,7 @@ void x68k_state::draw_sprites(bitmap_ind16 &bitmap, int priority, rectangle clip
sx += m_video.bg_hshift;
sx += m_sprite_shift;
- m_gfxdecode->gfx(1)->zoom_transpen(bitmap,cliprect,code,colour,xflip,yflip,m_crtc->hbegin()+sx,(m_crtc->vbegin() / divisor)+(sy*m_video.bg_double),0x10000,0x10000*m_video.bg_double,0x00);
+ m_gfxdecode->gfx(1)->zoom_transpen(bitmap,cliprect,code,colour,xflip,yflip,m_crtc->hbegin()+sx,(m_crtc->vbegin() / divisor)+sy,0x10000,0x10000,0x00);
}
}
}