Previous 15994 Revisions Next

r5690 Friday 11th September, 2009 at 14:12:27 UTC by Angelo Salese
[X1]: Added reverse color flickering for tilemaps
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r5689r5690
229229
230230                  pcg_pen = pen[2]<<2|pen[1]<<1|pen[0]<<0;
231231
232                  if(color & 0x10 &&    video_screen_get_frame_number(machine->primary_screen) & 0x10) //reverse flickering
233                     pcg_pen^=7;
234
232235                  if(pcg_pen == 0 && (!(color & 8)))
233236                     continue;
234237
r5689r5690
269272                     if(height)
270273                        *BITMAP_ADDR16(bitmap, res_y+yi+1, res_x+xi) = machine->pens[pcg_pen];
271274                     if(width && height)
272                     *BITMAP_ADDR16(bitmap, res_y+yi+1, res_x+xi+1) = machine->pens[pcg_pen];
275                        *BITMAP_ADDR16(bitmap, res_y+yi+1, res_x+xi+1) = machine->pens[pcg_pen];
273276                  }
274277               }
275278            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team