summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/argo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/argo.cpp')
-rw-r--r--src/mame/drivers/argo.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/mame/drivers/argo.cpp b/src/mame/drivers/argo.cpp
index 1750e5d87bf..eccf3a1447e 100644
--- a/src/mame/drivers/argo.cpp
+++ b/src/mame/drivers/argo.cpp
@@ -46,7 +46,7 @@ public:
DECLARE_WRITE8_MEMBER(argo_videoram_w);
DECLARE_READ8_MEMBER(argo_io_r);
DECLARE_WRITE8_MEMBER(argo_io_w);
- uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
void init_argo();
void argo(machine_config &config);
@@ -289,7 +289,7 @@ void argo_state::init_argo()
membank("boot")->configure_entries(0, 2, &RAM[0x0000], 0xf800);
}
-uint32_t argo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
+uint32_t argo_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
uint8_t y,ra,chr,gfx;
uint16_t sy=0,ma=0,x;
@@ -301,7 +301,7 @@ uint32_t argo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
{
for (ra = 0; ra < 10; ra++)
{
- uint16_t *p = &bitmap.pix16(sy++);
+ uint32_t *p = &bitmap.pix32(sy++);
for (x = 1; x < 81; x++) // align x to the cursor position numbers
{
@@ -325,14 +325,14 @@ uint32_t argo_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
gfx = 0xff;
/* Display a scanline of a character */
- *p++ = BIT(gfx, 7);
- *p++ = BIT(gfx, 6);
- *p++ = BIT(gfx, 5);
- *p++ = BIT(gfx, 4);
- *p++ = BIT(gfx, 3);
- *p++ = BIT(gfx, 2);
- *p++ = BIT(gfx, 1);
- *p++ = BIT(gfx, 0);
+ *p++ = BIT(gfx, 7) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 6) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 5) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 4) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 3) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 2) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 1) ? rgb_t::white() : rgb_t::black();
+ *p++ = BIT(gfx, 0) ? rgb_t::white() : rgb_t::black();
}
}
@@ -360,9 +360,6 @@ MACHINE_CONFIG_START(argo_state::argo)
MCFG_SCREEN_UPDATE_DRIVER(argo_state, screen_update)
MCFG_SCREEN_SIZE(640, 250)
MCFG_SCREEN_VISIBLE_AREA(0, 639, 0, 249)
- MCFG_SCREEN_PALETTE("palette")
-
- MCFG_PALETTE_ADD_MONOCHROME("palette")
MACHINE_CONFIG_END
/* ROM definition */