trunk/src/mame/video/dooyong.c
| r31711 | r31712 | |
| 224 | 224 | flags = ((attr & 0x02) ? TILE_FLIPX : 0) | ((attr & 0x04) ? TILE_FLIPY : 0); |
| 225 | 225 | } |
| 226 | 226 | else |
| 227 | | { /* primella/popbingo */ |
| 227 | { |
| 228 | |
| 229 | /* primella */ |
| 228 | 230 | /* Tiles take two bytes in ROM: |
| 229 | 231 | MSB LSB |
| 230 | 232 | [offs + 0x00] YXCC CCcc (Y flip, X flip, bits 3-0 of color code, bits 9-8 of gfx code) |
| r31711 | r31712 | |
| 233 | 235 | C = color code |
| 234 | 236 | X = x flip |
| 235 | 237 | Y = y flip */ |
| 236 | | code = tilerom[offs + 1] | ((attr & 0x03) << 8); |
| 237 | | color = (attr & 0x3c) >> 2; |
| 238 | int codemask = 0x03; |
| 239 | int palmask = 0x3c; |
| 240 | |
| 241 | if (m_gfxdecode->gfx(1)->depth() == 256) // pop bingo has an 8bpp layer and uses what would be the low palette bit to address more tiles (girls 4,5,6 in bonus game) |
| 242 | { |
| 243 | codemask = 0x07; |
| 244 | palmask = 0x00; |
| 245 | } |
| 246 | |
| 247 | code = tilerom[offs + 1] | ((attr & codemask) << 8); |
| 248 | color = (attr & palmask) >> 2; |
| 238 | 249 | flags = ((attr & 0x40) ? TILE_FLIPX : 0) | ((attr & 0x80) ? TILE_FLIPY : 0); |
| 239 | 250 | } |
| 240 | 251 | |