trunk/src/mame/drivers/gunpey.c
| r21515 | r21516 | |
| 280 | 280 | |
| 281 | 281 | |
| 282 | 282 | |
| 283 | | if(bpp_sel == 0x00) |
| 283 | if(bpp_sel == 0x00) // 4bpp |
| 284 | 284 | { |
| 285 | 285 | for(int yi=0;yi<height;yi++) |
| 286 | 286 | { |
| r21515 | r21516 | |
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | } |
| 305 | else if(bpp_sel == 0x08) // 6bpp |
| 306 | { |
| 307 | #if 0 |
| 308 | for(int yi=0;yi<height;yi++) |
| 309 | { |
| 310 | for(int xi=0;xi<width;xi++) |
| 311 | { |
| 312 | UINT8 data = vram[((((ysource+yi)&0x7ff)*0x800) + ((xsource+xi)&0x7ff))]; |
| 313 | UINT8 pix; |
| 305 | 314 | |
| 315 | pix = (data & 0x3f); |
| 316 | |
| 317 | if(cliprect.contains(x+xi, y+yi)) |
| 318 | bitmap.pix16(y+yi, x+xi) = pix + color*64; |
| 319 | } |
| 320 | } |
| 321 | #endif |
| 322 | } |
| 323 | else if(bpp_sel == 0x10) // 8bpp |
| 324 | { |
| 325 | for(int yi=0;yi<height;yi++) |
| 326 | { |
| 327 | for(int xi=0;xi<width;xi++) |
| 328 | { |
| 329 | UINT8 data = vram[((((ysource+yi)&0x7ff)*0x800) + ((xsource+xi)&0x7ff))]; |
| 330 | UINT8 pix; |
| 331 | |
| 332 | pix = (data & 0xff); |
| 333 | |
| 334 | if(cliprect.contains(x+xi, y+yi)) |
| 335 | bitmap.pix16(y+yi, x+xi) = pix + color*0x100; |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | else if(bpp_sel == 0x18) // RGB32k |
| 340 | { |
| 341 | // ... |
| 342 | } |
| 306 | 343 | } |
| 307 | 344 | } |
| 308 | 345 | |