summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tc0100scn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tc0100scn.cpp')
-rw-r--r--src/mame/video/tc0100scn.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/video/tc0100scn.cpp b/src/mame/video/tc0100scn.cpp
index 2417b1146e1..3fa49244a91 100644
--- a/src/mame/video/tc0100scn.cpp
+++ b/src/mame/video/tc0100scn.cpp
@@ -630,7 +630,7 @@ void tc0100scn_base_device::tilemap_update()
void tc0100scn_base_device::tilemap_draw_fg( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, tilemap_t* tmap, int flags, u8 priority, u8 pmask )
{
const bitmap_ind16 &src_bitmap = tmap->pixmap();
- int width_mask, height_mask, x, y, p;
+ int width_mask, height_mask;
int column_offset, src_x = 0, src_y = 0;
int scrollx_delta = - tmap->scrolldx();
int scrolly_delta = - tmap->scrolldy();
@@ -646,24 +646,24 @@ void tc0100scn_base_device::tilemap_draw_fg( screen_device &screen, bitmap_ind16
src_y += cliprect.top();
// Row offsets are 'screen space' 0-255 regardless of Y scroll
- for (y = cliprect.top(); y <= cliprect.bottom(); y++)
+ for (int y = cliprect.top(); y <= cliprect.bottom(); y++)
{
src_x = (m_fgscrollx - m_fgscroll_ram[(y + scrolly_delta) & 0x1ff] + scrollx_delta + cliprect.min_x) & width_mask;
if (m_ctrl[0x7] & 1) // Flipscreen
src_x = (256 - 64 - src_x) & width_mask;
// Col offsets are 'tilemap' space 0-511, and apply to blocks of 8 pixels at once
- for (x = 0; x < cliprect.width(); x++)
+ for (int x = 0; x < cliprect.width(); x++)
{
column_offset = m_colscroll_ram[(src_x & 0x3ff) / 8];
- p = src_bitmap.pix16((src_y - column_offset) & height_mask, src_x);
+ int p = src_bitmap.pix((src_y - column_offset) & height_mask, src_x);
if ((p & 0xf)!= 0 || (flags & TILEMAP_DRAW_OPAQUE))
{
- bitmap.pix16(y, x + cliprect.min_x) = p;
+ bitmap.pix(y, x + cliprect.min_x) = p;
if (screen.priority().valid())
{
- u8 *pri = &screen.priority().pix8(y);
+ u8 *pri = &screen.priority().pix(y);
pri[x + cliprect.min_x] = (pri[x + cliprect.min_x] & pmask) | priority;
}
}