diff options
Diffstat (limited to 'src/mame/drivers/mjsenpu.cpp')
-rw-r--r-- | src/mame/drivers/mjsenpu.cpp | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/mame/drivers/mjsenpu.cpp b/src/mame/drivers/mjsenpu.cpp index f38ca081012..5d3954855ca 100644 --- a/src/mame/drivers/mjsenpu.cpp +++ b/src/mame/drivers/mjsenpu.cpp @@ -407,32 +407,26 @@ void mjsenpu_state::video_start() uint32_t mjsenpu_state::screen_update_mjsenpu(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - int x,y,count; - int color; + uint32_t const *const vram = (m_control & 0x01) ? m_vram0 : m_vram1; - uint32_t* vram; - - if (m_control & 0x01) vram = m_vram0; - else vram = m_vram1; - - - - count = 0; - for (y=0;y < 256;y++) + int count = 0; + for (int y=0;y < 256;y++) { - for (x=0;x < 512/4;x++) + for (int x=0;x < 512/4;x++) { + int color; + color = vram[count] & 0x000000ff; - bitmap.pix16(y, x*4 + 2) = color; + bitmap.pix(y, x*4 + 2) = color; color = (vram[count] & 0x0000ff00) >> 8; - bitmap.pix16(y, x*4 + 3) = color; + bitmap.pix(y, x*4 + 3) = color; color = (vram[count] & 0x00ff0000) >> 16; - bitmap.pix16(y, x*4 + 0) = color; + bitmap.pix(y, x*4 + 0) = color; color = (vram[count] & 0xff000000) >> 24; - bitmap.pix16(y, x*4 + 1) = color; + bitmap.pix(y, x*4 + 1) = color; count++; } |