summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/embargo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/embargo.cpp')
-rw-r--r--src/mame/drivers/embargo.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mame/drivers/embargo.cpp b/src/mame/drivers/embargo.cpp
index 9c528330d11..44d903197b8 100644
--- a/src/mame/drivers/embargo.cpp
+++ b/src/mame/drivers/embargo.cpp
@@ -52,23 +52,19 @@ private:
uint32_t embargo_state::screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
- offs_t offs;
-
- for (offs = 0; offs < m_videoram.bytes(); offs++)
+ for (offs_t offs = 0; offs < m_videoram.bytes(); offs++)
{
- int i;
-
uint8_t x = offs << 3;
- uint8_t y = offs >> 5;
+ uint8_t const y = offs >> 5;
uint8_t data = m_videoram[offs];
- for (i = 0; i < 8; i++)
+ for (int i = 0; i < 8; i++)
{
pen_t pen = (data & 0x01) ? rgb_t::white() : rgb_t::black();
- bitmap.pix32(y, x) = pen;
+ bitmap.pix(y, x) = pen;
- data = data >> 1;
- x = x + 1;
+ data >>= 1;
+ x++;
}
}