Previous 15994 Revisions Next

r4941 Friday 5th June, 2009 at 02:13:42 UTC by Barry Rodewald
[FM7] Corrected palette use.
[src/mess/drivers]fm7.c

src/mess/drivers/fm7.c
r4940r4941
489489   palette_set_color(space->machine,offset,MAKE_RGB(r,g,b));
490490   fm7_pal[offset] = data & 0x07;
491491}
492
492493static void fm7_update_psg(running_machine* machine)
493494{
494495   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
r4940r4941
865866    {
866867       for (x = 0; x < 80; x++)
867868       {
868            code_r = fm7_video_ram[0x4000 + ((y*80 + x + vram_offset) & 0x3fff)];
869            code_g = fm7_video_ram[0x8000 + ((y*80 + x + vram_offset) & 0x3fff)];
869            code_r = fm7_video_ram[0x8000 + ((y*80 + x + vram_offset) & 0x3fff)];
870            code_g = fm7_video_ram[0x4000 + ((y*80 + x + vram_offset) & 0x3fff)];
870871            code_b = fm7_video_ram[0x0000 + ((y*80 + x + vram_offset) & 0x3fff)];
871872            for (b = 0; b < 8; b++)
872873            {
r4940r4941
881882static const rgb_t fm7_initial_palette[8] = {
882883   MAKE_RGB(0x00, 0x00, 0x00), // 0
883884   MAKE_RGB(0x00, 0x00, 0xff), // 1
884   MAKE_RGB(0x00, 0xff, 0x00), // 2
885   MAKE_RGB(0x00, 0xff, 0xff), // 3
886   MAKE_RGB(0xff, 0x00, 0x00), // 4
887   MAKE_RGB(0xff, 0x00, 0xff), // 5
885   MAKE_RGB(0xff, 0x00, 0x00), // 2
886   MAKE_RGB(0xff, 0x00, 0xff), // 3
887   MAKE_RGB(0x00, 0xff, 0x00), // 4
888   MAKE_RGB(0x00, 0xff, 0xff), // 5
888889   MAKE_RGB(0xff, 0xff, 0x00), // 6
889890   MAKE_RGB(0xff, 0xff, 0xff), // 7
890891};

Previous 15994 Revisions Next


© 1998-2018 The MESS Team