From 93533fa4365ca5a6b5913b662dc522569f1bdfe4 Mon Sep 17 00:00:00 2001 From: Mark Garlanger Date: Sun, 10 Dec 2023 10:34:30 -0600 Subject: heathkit/tlb.cpp: Avoid clearing cliprect in MC6845_BEGIN_UPDATE. (#11804) Clear entire extent of row when DE is not asserted. --- src/mame/heathkit/tlb.cpp | 8 +------- src/mame/heathkit/tlb.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/mame/heathkit/tlb.cpp b/src/mame/heathkit/tlb.cpp index becfa6eb5f5..4370d978380 100644 --- a/src/mame/heathkit/tlb.cpp +++ b/src/mame/heathkit/tlb.cpp @@ -1124,7 +1124,6 @@ void heath_superset_tlb_device::device_add_mconfig(machine_config &config) // per line updates are needed for onscreen menu to display properly m_screen->set_video_attributes(VIDEO_UPDATE_SCANLINE); - m_crtc->set_begin_update_callback(FUNC(heath_superset_tlb_device::crtc_begin_update)); m_crtc->set_update_row_callback(FUNC(heath_superset_tlb_device::crtc_update_row)); // link up the serial port outputs to font chip. @@ -1187,11 +1186,6 @@ void heath_superset_tlb_device::crtc_reg_w(offs_t reg, uint8_t val) heath_tlb_device::crtc_reg_w(reg, val); } -MC6845_BEGIN_UPDATE(heath_superset_tlb_device::crtc_begin_update) -{ - bitmap.fill(rgb_t::black(), cliprect); -} - MC6845_UPDATE_ROW(heath_superset_tlb_device::crtc_update_row) { rgb_t const *const palette = m_palette->palette()->entry_list_raw(); @@ -1232,7 +1226,7 @@ MC6845_UPDATE_ROW(heath_superset_tlb_device::crtc_update_row) } else { - std::fill_n(p, x_count * 8, palette[0]); + std::fill_n(p, bitmap.rowpixels(), palette[0]); } } diff --git a/src/mame/heathkit/tlb.h b/src/mame/heathkit/tlb.h index 1380f88dd69..55b11d1c98d 100644 --- a/src/mame/heathkit/tlb.h +++ b/src/mame/heathkit/tlb.h @@ -169,7 +169,6 @@ protected: void mem_map(address_map &map); void io_map(address_map &map); - MC6845_BEGIN_UPDATE(crtc_begin_update); virtual MC6845_UPDATE_ROW(crtc_update_row) override; void dtr_internal(int data); -- cgit v1.2.3