summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/pgm2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/pgm2.cpp')
-rw-r--r--src/mame/video/pgm2.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/video/pgm2.cpp b/src/mame/video/pgm2.cpp
index 3c7dc40e10e..e235549f8c7 100644
--- a/src/mame/video/pgm2.cpp
+++ b/src/mame/video/pgm2.cpp
@@ -10,7 +10,7 @@ inline void pgm2_state::draw_sprite_pixel(const rectangle &cliprect, u32 palette
{
u16 const pix = m_sprites_colour[palette_offset] & 0x3f; // there are some stray 0xff bytes in some roms, so mask
u16 const pendat = pix + (pal * 0x40);
- u16* dstptr_bitmap = &m_sprite_bitmap.pix16(realy);
+ u16 *const dstptr_bitmap = &m_sprite_bitmap.pix(realy);
dstptr_bitmap[realx] = pendat;
}
}
@@ -270,14 +270,12 @@ void pgm2_state::copy_sprites_from_bitmap(bitmap_rgb32 &bitmap, const rectangle
{
pri <<= 12;
- const pen_t *paldata = m_sp_palette->pens();
- u16* srcptr_bitmap;
- u32* dstptr_bitmap;
+ pen_t const *const paldata = m_sp_palette->pens();
for (int y = cliprect.top(); y <= cliprect.bottom(); y++)
{
- srcptr_bitmap = &m_sprite_bitmap.pix16(y);
- dstptr_bitmap = &bitmap.pix32(y);
+ u16 const *const srcptr_bitmap = &m_sprite_bitmap.pix(y);
+ u32 *const dstptr_bitmap = &bitmap.pix(y);
for (int x = cliprect.left(); x <= cliprect.right(); x++)
{