summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tickee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tickee.cpp')
-rw-r--r--src/mame/drivers/tickee.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mame/drivers/tickee.cpp b/src/mame/drivers/tickee.cpp
index 076043c17f6..a0ca3cf7f1e 100644
--- a/src/mame/drivers/tickee.cpp
+++ b/src/mame/drivers/tickee.cpp
@@ -220,21 +220,20 @@ VIDEO_START_MEMBER(tickee_state,tickee)
TMS340X0_SCANLINE_RGB32_CB_MEMBER(tickee_state::scanline_update)
{
- uint16_t *src = &m_vram[(params->rowaddr << 8) & 0x3ff00];
- uint32_t *dest = &bitmap.pix32(scanline);
- const pen_t *pens = m_tlc34076->pens();
+ uint16_t const *const src = &m_vram[(params->rowaddr << 8) & 0x3ff00];
+ uint32_t *const dest = &bitmap.pix(scanline);
+ pen_t const *const pens = m_tlc34076->pens();
int coladdr = params->coladdr << 1;
- int x;
/* blank palette: fill with pen 255 */
if (m_control[2])
{
- for (x = params->heblnk; x < params->hsblnk; x++)
+ for (int x = params->heblnk; x < params->hsblnk; x++)
dest[x] = pens[0xff];
}
else
/* copy the non-blanked portions of this scanline */
- for (x = params->heblnk; x < params->hsblnk; x += 2)
+ for (int x = params->heblnk; x < params->hsblnk; x += 2)
{
uint16_t pixels = src[coladdr++ & 0xff];
dest[x + 0] = pens[pixels & 0xff];
@@ -245,16 +244,15 @@ TMS340X0_SCANLINE_RGB32_CB_MEMBER(tickee_state::scanline_update)
TMS340X0_SCANLINE_RGB32_CB_MEMBER(tickee_state::rapidfir_scanline_update)
{
- uint16_t *src = &m_vram[(params->rowaddr << 8) & 0x3ff00];
- uint32_t *dest = &bitmap.pix32(scanline);
+ uint16_t const *const src = &m_vram[(params->rowaddr << 8) & 0x3ff00];
+ uint32_t *const dest = &bitmap.pix(scanline);
const pen_t *pens = m_tlc34076->pens();
int coladdr = params->coladdr << 1;
- int x;
if (m_palette_bank)
{
/* blank palette: fill with pen 255 */
- for (x = params->heblnk; x < params->hsblnk; x += 2)
+ for (int x = params->heblnk; x < params->hsblnk; x += 2)
{
dest[x + 0] = pens[0xff];
dest[x + 1] = pens[0xff];
@@ -263,7 +261,7 @@ TMS340X0_SCANLINE_RGB32_CB_MEMBER(tickee_state::rapidfir_scanline_update)
else
{
/* copy the non-blanked portions of this scanline */
- for (x = params->heblnk; x < params->hsblnk; x += 2)
+ for (int x = params->heblnk; x < params->hsblnk; x += 2)
{
uint16_t pixels = src[coladdr++ & 0xff];
dest[x + 0] = pens[pixels & 0xff];