From 53d37d78dce864d9c15263f8cff2e13c38f6a8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Fri, 19 Sep 2014 14:56:07 +0000 Subject: [PATCH] small optimization to tms9928a_device::device_timer() (nw) --- src/emu/video/tms9928a.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/emu/video/tms9928a.c b/src/emu/video/tms9928a.c index 28a7b51e3ce..a05b0e98629 100644 --- a/src/emu/video/tms9928a.c +++ b/src/emu/video/tms9928a.c @@ -282,8 +282,7 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par if ( y < 0 || y >= 192 || ! (m_Regs[1] & 0x40) ) { /* Draw backdrop colour */ - for ( int i = 0; i < TMS9928A_TOTAL_HORZ; i++ ) - p[i] = m_palette[BackColour]; + memset(p, m_palette[BackColour], TMS9928A_TOTAL_HORZ); /* vblank is set at the last cycle of the first inactive line */ if ( y == 193 ) @@ -297,8 +296,7 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par /* Draw regular line */ /* Left border */ - for ( int i = 0; i < TMS9928A_HORZ_DISPLAY_START; i++ ) - p[i] = m_palette[BackColour]; + memset(p, m_palette[BackColour], TMS9928A_HORZ_DISPLAY_START); /* Active display */