From 10c526ff04b4cd48a27313f3f252cddb3076ddeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Mon, 31 May 2010 17:34:49 +0000 Subject: [PATCH] switch red/green as on flyer --- src/mame/drivers/battlex.c | 3 --- src/mame/video/battlex.c | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mame/drivers/battlex.c b/src/mame/drivers/battlex.c index ea08ccf87b1..4957e515c4a 100644 --- a/src/mame/drivers/battlex.c +++ b/src/mame/drivers/battlex.c @@ -24,9 +24,6 @@ - game speed, its seems to be controlled by the IRQ's, how fast should it be? firing seems frustratingly inconsistant - - colors match Tim's screen shots, but there's no guarantee RGB are in the - correct order. - **************************************************************************** Battle Cross (c)1982 Omori diff --git a/src/mame/video/battlex.c b/src/mame/video/battlex.c index 6d8f53cc8be..5b768ef42ef 100644 --- a/src/mame/video/battlex.c +++ b/src/mame/video/battlex.c @@ -16,9 +16,9 @@ PALETTE_INIT( battlex ) for (i = 0; i < 16; i++) { int data = i | col; - int g = pal1bit(data >> 0); + int r = pal1bit(data >> 0); int b = pal1bit(data >> 1); - int r = pal1bit(data >> 2); + int g = pal1bit(data >> 2); #if 0 /* from Tim's shots, bit 3 seems to have no effect (see e.g. Laser Ship on title screen) */ @@ -37,7 +37,7 @@ PALETTE_INIT( battlex ) WRITE8_HANDLER( battlex_palette_w ) { - palette_set_color_rgb(space->machine, 16 * 8 + offset, pal1bit(data >> 2), pal1bit(data >> 0), pal1bit(data >> 1)); + palette_set_color_rgb(space->machine, 16 * 8 + offset, pal1bit(data >> 0), pal1bit(data >> 2), pal1bit(data >> 1)); } WRITE8_HANDLER( battlex_scroll_x_lsb_w )