Previous 15994 Revisions Next

r8894 Wednesday 25th August, 2010 at 06:49:02 UTC by Miodrag Milanović
[JR100] Fixed graphics issues.
[src/mess/drivers]jr100.c

src/mess/drivers/jr100.c
r8893r8894
107107{
108108   int x,y,xi,yi;
109109
110   UINT8 *gfx_data = memory_region(screen->machine, "maincpu") + 0xe000;
111   if (jr100_use_pcg) {
112      gfx_data = jr100_pcg;
113   }
110   UINT8 *rom_pcg = memory_region(screen->machine, "maincpu") + 0xe000;
114111   for (y = 0; y < 24; y++)
115112   {
116113      for (x = 0; x < 32; x++)
117114      {
118115         UINT8 tile = jr100_vram[x + y*32];
119116         UINT8 attr = tile >> 7;
117         // ATTR is inverted for normal char or use PCG in case of CMODE1
118         UINT8 *gfx_data = rom_pcg;
119         if (jr100_use_pcg && attr) {
120            gfx_data = jr100_pcg;
121            attr = 0; // clear attr so bellow code stay same
122         }
120123         tile &= 0x7f;
121124         for(yi=0;yi<8;yi++)
122125         {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team