summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/model2rd.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/model2rd.hxx')
-rw-r--r--src/mame/video/model2rd.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/video/model2rd.hxx b/src/mame/video/model2rd.hxx
index 53325c06b14..7c878868fac 100644
--- a/src/mame/video/model2rd.hxx
+++ b/src/mame/video/model2rd.hxx
@@ -60,8 +60,7 @@ void MODEL2_FUNC_NAME(int32_t scanline, const extent_t& extent, const m2_poly_ex
{
#if !defined( MODEL2_TRANSLUCENT)
model2_state *state = object.state;
- bitmap_rgb32 *destmap = (bitmap_rgb32 *)&m_destmap;
- u32 *p = &destmap->pix32(scanline);
+ u32 *const p = &m_destmap.pix(scanline);
// u8 *gamma_value = &state->m_gamma_table[0];
/* extract color information */
@@ -119,8 +118,7 @@ void MODEL2_FUNC_NAME(int32_t scanline, const extent_t& extent, const m2_poly_ex
void MODEL2_FUNC_NAME(int32_t scanline, const extent_t& extent, const m2_poly_extra_data& object, int threadid)
{
model2_state *state = object.state;
- bitmap_rgb32 *destmap = (bitmap_rgb32 *)&m_destmap;
- u32 *p = &destmap->pix32(scanline);
+ u32 *const p = &m_destmap.pix(scanline);
u32 tex_width = object.texwidth;
u32 tex_height = object.texheight;