src/mess/video/nes.c
| r1909 | r1910 | |
| 89 | 89 | ppu2c0x_init_palette(machine, 0); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | | static void draw_sight(bitmap_t *bitmap, int playerNum, int x_center, int y_center) |
| 92 | static void draw_sight(bitmap_t *bitmap, UINT16 color, int x_center, int y_center) |
| 93 | 93 | { |
| 94 | 94 | int x,y; |
| 95 | | UINT16 color; |
| 96 | 95 | |
| 97 | | if (playerNum == 2) |
| 98 | | color = Machine->pens[0]; /* grey */ |
| 99 | | else |
| 100 | | color = Machine->pens[0x30]; /* white */ |
| 101 | | |
| 102 | 96 | if (x_center<2) x_center=2; |
| 103 | 97 | if (x_center>253) x_center=253; |
| 104 | 98 | |
| r1909 | r1910 | |
| 138 | 132 | if ((readinputport(PORT_CONFIG1) & 0x00f0) == 0x0030) |
| 139 | 133 | sights |= 0x0002; |
| 140 | 134 | if (sights & 0x0001) |
| 141 | | draw_sight(bitmap, 1, readinputport(PORT_ZAPPER0_X), readinputport(PORT_ZAPPER0_Y)); |
| 135 | draw_sight(bitmap, machine->pens[0x30], readinputport(PORT_ZAPPER0_X), readinputport(PORT_ZAPPER0_Y)); |
| 142 | 136 | if (sights & 0x0002) |
| 143 | | draw_sight(bitmap, 2, readinputport(PORT_ZAPPER1_X), readinputport(PORT_ZAPPER1_Y)); |
| 137 | draw_sight(bitmap, machine->pens[0x00], readinputport(PORT_ZAPPER1_X), readinputport(PORT_ZAPPER1_Y)); |
| 144 | 138 | |
| 145 | 139 | /* if this is a disk system game, check for the flip-disk key */ |
| 146 | 140 | if (nes.mapper == 20) |