summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/comx35/clm.c
diff options
context:
space:
mode:
author Curt Coder <curtcoder@mail.com>2014-03-27 09:33:57 +0000
committer Curt Coder <curtcoder@mail.com>2014-03-27 09:33:57 +0000
commit04c9f4b05ea76571fdae1c0e4e9e2744001d4d39 (patch)
tree95af3fce10ae1f8f3b77f2ab6a6b4229dc82bd4e /src/emu/bus/comx35/clm.c
parentab3a90ca29dd65dedeb99a035b0316cc7b4daeda (diff)
mc6845: Added display enable and horizontal/vertical back porch widths to the update function. Updated some MESS drivers to make use of this. [Curt Coder]
(MESS) pet: Added the "Fat 40" PET/CBM 4032 models. Check out "No Pets Allowed" by Orb to see them and the new mc6845 functionality in action. [Curt Coder]
Diffstat (limited to 'src/emu/bus/comx35/clm.c')
-rw-r--r--src/emu/bus/comx35/clm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/bus/comx35/clm.c b/src/emu/bus/comx35/clm.c
index ecef4d61f9f..e48ba540fec 100644
--- a/src/emu/bus/comx35/clm.c
+++ b/src/emu/bus/comx35/clm.c
@@ -100,7 +100,7 @@ const rom_entry *comx_clm_device::device_rom_region() const
// mc6845_interface crtc_intf
//-------------------------------------------------
-void comx_clm_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, void *param)
+void comx_clm_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, int de, int hbp, int vbp, void *param)
{
for (int column = 0; column < x_count; column++)
{
@@ -117,7 +117,7 @@ void comx_clm_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitma
{
int x = (column * 8) + bit;
- bitmap.pix32(y, x) = m_palette->pen(BIT(data, 7));
+ bitmap.pix32(vbp + y, hbp + x) = m_palette->pen(BIT(data, 7) && de);
data <<= 1;
}
@@ -127,12 +127,12 @@ void comx_clm_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitma
static MC6845_UPDATE_ROW( comx_clm_update_row )
{
comx_clm_device *clm = downcast<comx_clm_device *>(device->owner());
- clm->crtc_update_row(device,bitmap,cliprect,ma,ra,y,x_count,cursor_x,param);
+ clm->crtc_update_row(device,bitmap,cliprect,ma,ra,y,x_count,cursor_x,de,hbp,vbp,param);
}
static MC6845_INTERFACE( crtc_intf )
{
- false,
+ true,
0,0,0,0,
8,
NULL,