Previous 15994 Revisions Next

r5782 Friday 18th September, 2009 at 05:46:31 UTC by Roberto Zandonà
[JR200] fixed palette
[src/mess/drivers]jr200.c

src/mess/drivers/jr200.c
r5781r5782
284284{
285285}
286286
287static PALETTE_INIT( jr200 )
288{
289   int i;
290
291   for (i = 0; i < 64; i++)
292   {
293      palette_set_color_rgb(machine, 2 * i + 1, pal1bit(i >> 1), pal1bit(i >> 2), pal1bit(i >> 0));
294      palette_set_color_rgb(machine, 2 * i + 0, pal1bit(i >> 4), pal1bit(i >> 5), pal1bit(i >> 3));
295   }
296}
297
287298static VIDEO_START( jr200 )
288299{
289300}
r5781r5782
298309      {
299310         UINT8 code = textram[0x0100 + i + j];
300311         UINT8 col_bg = (textram[0x0500 + i + j] >> 3) & 0x07;
301         UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x07;
312         UINT8 col_fg = (textram[0x0500 + i + j] >> 0) & 0x3f;
302313
303314         if (1==0) drawgfx_transpen(bitmap, cliprect, gfx,
304315               0, col_bg,
r5781r5782
360371   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 192-1)
361372
362373   MDRV_GFXDECODE(jr200)
363   MDRV_PALETTE_LENGTH(255)
364
374   MDRV_PALETTE_LENGTH(128)
375   MDRV_PALETTE_INIT(jr200)
365376   MDRV_VIDEO_START(jr200)
366377   MDRV_VIDEO_UPDATE(jr200)
367378MACHINE_DRIVER_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team