summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/suprgolf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/suprgolf.cpp')
-rw-r--r--src/mame/drivers/suprgolf.cpp38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/mame/drivers/suprgolf.cpp b/src/mame/drivers/suprgolf.cpp
index 41cabcb5380..3b39c581fd9 100644
--- a/src/mame/drivers/suprgolf.cpp
+++ b/src/mame/drivers/suprgolf.cpp
@@ -135,40 +135,36 @@ void suprgolf_state::video_start()
uint32_t suprgolf_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- int x,y,count,color;
+ int count;
bitmap.fill(m_palette->black_pen(), cliprect);
- {
- count = 0;
+ count = 0;
- for(y=0;y<256;y++)
+ for(int y=0;y<256;y++)
+ {
+ for(int x=0;x<512;x++)
{
- for(x=0;x<512;x++)
- {
- color = m_bg_fb[count];
+ int const color = m_bg_fb[count];
- if(x <= cliprect.max_x && y <= cliprect.max_y)
- bitmap.pix16(y, x) = m_palette->pen((color & 0x7ff));
+ if(x <= cliprect.max_x && y <= cliprect.max_y)
+ bitmap.pix(y, x) = m_palette->pen((color & 0x7ff));
- count++;
- }
+ count++;
}
}
- {
- count = 0;
+ count = 0;
- for(y=0;y<256;y++)
+ for(int y=0;y<256;y++)
+ {
+ for(int x=0;x<512;x++)
{
- for(x=0;x<512;x++)
- {
- color = m_fg_fb[count];
+ int const color = m_fg_fb[count];
- if(((m_fg_fb[count] & 0x0f) != 0x0f) && (x <= cliprect.max_x && y <= cliprect.max_y))
- bitmap.pix16(y, x) = m_palette->pen((color & 0x7ff));
+ if(((m_fg_fb[count] & 0x0f) != 0x0f) && (x <= cliprect.max_x && y <= cliprect.max_y))
+ bitmap.pix(y, x) = m_palette->pen((color & 0x7ff));
- count++;
- }
+ count++;
}
}