src/mess/video/cpschngr.c
| r5095 | r5096 | |
| 665 | 665 | #define DRAWSPRITE(CODE,COLOR,FLIPX,FLIPY,SX,SY) \ |
| 666 | 666 | { \ |
| 667 | 667 | if (flip_screen_get(machine)) \ |
| 668 | | pdrawgfx(bitmap,machine->gfx[2], \ |
| 668 | pdrawgfx_transpen(bitmap,\ |
| 669 | cliprect,machine->gfx[2], \ |
| 669 | 670 | CODE, \ |
| 670 | 671 | COLOR, \ |
| 671 | 672 | !(FLIPX),!(FLIPY), \ |
| 672 | | 511-16-(SX),255-16-(SY), \ |
| 673 | | cliprect,TRANSPARENCY_PEN,15,0x02); \ |
| 673 | 511-16-(SX),255-16-(SY), priority_bitmap,0x02,15); \ |
| 674 | 674 | else \ |
| 675 | | pdrawgfx(bitmap,machine->gfx[2], \ |
| 675 | pdrawgfx_transpen(bitmap,\ |
| 676 | cliprect,machine->gfx[2], \ |
| 676 | 677 | CODE, \ |
| 677 | 678 | COLOR, \ |
| 678 | 679 | FLIPX,FLIPY, \ |
| 679 | | SX,SY, \ |
| 680 | | cliprect,TRANSPARENCY_PEN,15,0x02); \ |
| 680 | SX,SY, priority_bitmap,0x02,15); \ |
| 681 | 681 | } |
| 682 | 682 | |
| 683 | 683 | |
src/mess/video/cbmb.c
| r5095 | r5096 | |
| 77 | 77 | if ( i == cursor_x ) { |
| 78 | 78 | plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, 1 ); |
| 79 | 79 | } else { |
| 80 | | drawgfx( bitmap, device->machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 80 | drawgfx_opaque( bitmap, cliprect, device->machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra ); |
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | } |
| r5095 | r5096 | |
| 90 | 90 | if ( i == cursor_x ) { |
| 91 | 91 | plot_box( bitmap, device->machine->gfx[cbmb_font]->width * i, y, device->machine->gfx[cbmb_font]->width, 1, 1 ); |
| 92 | 92 | } else { |
| 93 | | drawgfx( bitmap, device->machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 93 | drawgfx_opaque( bitmap, cliprect, device->machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, device->machine->gfx[cbmb_font]->width * i, y-ra ); |
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | 96 | } |
src/mess/video/ac1.c
| r5095 | r5096 | |
| 36 | 36 | for(x = 0; x < 64; x++ ) |
| 37 | 37 | { |
| 38 | 38 | int code = memory_read_byte(space, AC1_VIDEO_MEMORY + x + y*64); |
| 39 | | drawgfx(bitmap, screen->machine->gfx[0], code , 0, 0,0, 63*6-x*6,15*8-y*8, |
| 40 | | NULL, TRANSPARENCY_NONE, 0); |
| 39 | drawgfx_opaque(bitmap, NULL, screen->machine->gfx[0], code , 0, 0,0, 63*6-x*6,15*8-y*8); |
| 41 | 40 | } |
| 42 | 41 | } |
| 43 | 42 | return 0; |
| r5095 | r5096 | |
| 53 | 52 | for(x = 0; x < 64; x++ ) |
| 54 | 53 | { |
| 55 | 54 | int code = memory_read_byte(space, AC1_VIDEO_MEMORY + x + y*64); |
| 56 | | drawgfx(bitmap, screen->machine->gfx[0], code , 0, 0,0, 63*6-x*6,31*8-y*8, |
| 57 | | NULL, TRANSPARENCY_NONE, 0); |
| 55 | drawgfx_opaque(bitmap, NULL, screen->machine->gfx[0], code , 0, 0,0, 63*6-x*6,31*8-y*8); |
| 58 | 56 | } |
| 59 | 57 | } |
| 60 | 58 | return 0; |
src/mess/video/cgenie.c
| r5095 | r5096 | |
| 273 | 273 | { |
| 274 | 274 | /* get graphics code */ |
| 275 | 275 | code = videoram[i]; |
| 276 | | drawgfx(bitmap, machine->gfx[1], code, 0, |
| 277 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 276 | drawgfx_opaque(bitmap, &r, machine->gfx[1], code, 0, |
| 277 | 0, 0, r.min_x, r.min_y); |
| 278 | 278 | } |
| 279 | 279 | else |
| 280 | 280 | { |
| r5095 | r5096 | |
| 283 | 283 | |
| 284 | 284 | /* translate defined character sets */ |
| 285 | 285 | code += cgenie_font_offset[(code >> 6) & 3]; |
| 286 | | drawgfx(bitmap, machine->gfx[0], code, colorram[i&0x3ff], |
| 287 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 286 | drawgfx_opaque(bitmap, &r, machine->gfx[0], code, colorram[i&0x3ff], |
| 287 | 0, 0, r.min_x, r.min_y); |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | if( i == cursor ) |
| r5095 | r5096 | |
| 312 | 312 | rc.max_x = r.max_x; |
| 313 | 313 | rc.min_y = r.min_y + (crt.cursor_top & 15); |
| 314 | 314 | rc.max_y = r.min_y + (crt.cursor_bottom & 15); |
| 315 | | drawgfx(bitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff], |
| 316 | | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 315 | drawgfx_opaque(bitmap, &rc, machine->gfx[0], 0x7f, colorram[i&0x3ff], |
| 316 | 0, 0, rc.min_x, rc.min_y); |
| 317 | 317 | } |
| 318 | 318 | } |
| 319 | 319 | } |
| r5095 | r5096 | |
| 352 | 352 | { |
| 353 | 353 | /* get graphics code */ |
| 354 | 354 | code = videoram[i]; |
| 355 | | drawgfx(tmpbitmap, machine->gfx[1], code, 1, |
| 356 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 357 | | drawgfx(dlybitmap, machine->gfx[1], code, 2, |
| 358 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 355 | drawgfx_opaque(tmpbitmap, &r, machine->gfx[1], code, 1, |
| 356 | 0, 0, r.min_x, r.min_y); |
| 357 | drawgfx_opaque(dlybitmap, &r, machine->gfx[1], code, 2, |
| 358 | 0, 0, r.min_x, r.min_y); |
| 359 | 359 | } |
| 360 | 360 | else |
| 361 | 361 | { |
| r5095 | r5096 | |
| 364 | 364 | |
| 365 | 365 | /* translate defined character sets */ |
| 366 | 366 | code += cgenie_font_offset[(code >> 6) & 3]; |
| 367 | | drawgfx(tmpbitmap, machine->gfx[0], code, colorram[i&0x3ff] + 16, |
| 368 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 369 | | drawgfx(dlybitmap, machine->gfx[0], code, colorram[i&0x3ff] + 32, |
| 370 | | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 367 | drawgfx_opaque(tmpbitmap, &r, machine->gfx[0], code, colorram[i&0x3ff] + 16, |
| 368 | 0, 0, r.min_x, r.min_y); |
| 369 | drawgfx_opaque(dlybitmap, &r, machine->gfx[0], code, colorram[i&0x3ff] + 32, |
| 370 | 0, 0, r.min_x, r.min_y); |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | 373 | if( i == cursor ) |
| r5095 | r5096 | |
| 396 | 396 | rc.min_y = r.min_y + (crt.cursor_top & 15); |
| 397 | 397 | rc.max_y = r.min_y + (crt.cursor_bottom & 15); |
| 398 | 398 | |
| 399 | | drawgfx(tmpbitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 16, |
| 400 | | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 401 | | drawgfx(dlybitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 32, |
| 402 | | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 399 | drawgfx_opaque(tmpbitmap, &rc, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 16, |
| 400 | 0, 0, rc.min_x, rc.min_y); |
| 401 | drawgfx_opaque(dlybitmap, &rc, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 32, |
| 402 | 0, 0, rc.min_x, rc.min_y); |
| 403 | 403 | } |
| 404 | 404 | } |
| 405 | 405 | } |
src/mess/video/pet.c
| r5095 | r5096 | |
| 74 | 74 | { |
| 75 | 75 | for (x=0;x<40;x++, i++) |
| 76 | 76 | { |
| 77 | | drawgfx(bitmap, screen->machine->gfx[pet_font], |
| 78 | | videoram[i], 0, 0, 0, 8*x,8*y, |
| 79 | | NULL,TRANSPARENCY_NONE,0); |
| 77 | drawgfx_opaque(bitmap, NULL,screen->machine->gfx[pet_font], |
| 78 | videoram[i], 0, 0, 0, 8*x,8*y); |
| 80 | 79 | } |
| 81 | 80 | } |
| 82 | 81 | return 0; |
| r5095 | r5096 | |
| 88 | 87 | int i; |
| 89 | 88 | |
| 90 | 89 | for( i = 0; i < x_count; i++ ) { |
| 91 | | drawgfx( bitmap, device->machine->gfx[pet_font], videoram[(ma+i)&0x3ff], 0, 0, 0, 8 * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 90 | drawgfx_opaque( bitmap, cliprect, device->machine->gfx[pet_font], videoram[(ma+i)&0x3ff], 0, 0, 0, 8 * i, y-ra ); |
| 92 | 91 | } |
| 93 | 92 | } |
| 94 | 93 | |
| r5095 | r5096 | |
| 97 | 96 | int i; |
| 98 | 97 | |
| 99 | 98 | for( i = 0; i < x_count; i++ ) { |
| 100 | | drawgfx( bitmap, device->machine->gfx[pet_font], videoram[((ma+i)<<1)&0x7ff], 0, 0, 0, 16 * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 101 | | drawgfx( bitmap, device->machine->gfx[pet_font], videoram[(((ma+i)<<1)+1)&0x7ff], 0, 0, 0, 16 * i + 8, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 99 | drawgfx_opaque( bitmap, cliprect, device->machine->gfx[pet_font], videoram[((ma+i)<<1)&0x7ff], 0, 0, 0, 16 * i, y-ra ); |
| 100 | drawgfx_opaque( bitmap, cliprect, device->machine->gfx[pet_font], videoram[(((ma+i)<<1)+1)&0x7ff], 0, 0, 0, 16 * i + 8, y-ra ); |
| 102 | 101 | } |
| 103 | 102 | } |
| 104 | 103 | |
src/mess/video/pc1403.c
| r5095 | r5096 | |
| 169 | 169 | { |
| 170 | 170 | for (x=RIGHT, y=DOWN, i=0; i<6*5; x+=2) { |
| 171 | 171 | for (j=0; j<5; j++, i++, x+=2) |
| 172 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 173 | | x,y, |
| 174 | | 0, TRANSPARENCY_NONE,0); |
| 172 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 173 | x,y); |
| 175 | 174 | } |
| 176 | 175 | for (i=9*5; i<12*5; x+=2) |
| 177 | 176 | { |
| 178 | 177 | for (j=0; j<5; j++, i++, x+=2) |
| 179 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 180 | | x,y, |
| 181 | | 0, TRANSPARENCY_NONE,0); |
| 178 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 179 | x,y); |
| 182 | 180 | } |
| 183 | 181 | for (i=6*5; i<9*5; x+=2) |
| 184 | 182 | { |
| 185 | 183 | for (j=0; j<5; j++, i++, x+=2) |
| 186 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 187 | | x,y, |
| 188 | | 0, TRANSPARENCY_NONE,0); |
| 184 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 185 | x,y); |
| 189 | 186 | } |
| 190 | 187 | for (i=0x7b-3*5; i>0x7b-6*5; x+=2) |
| 191 | 188 | { |
| 192 | 189 | for (j=0; j<5; j++, i--, x+=2) |
| 193 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 194 | | x,y, |
| 195 | | 0, TRANSPARENCY_NONE,0); |
| 190 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 191 | x,y); |
| 196 | 192 | } |
| 197 | 193 | for (i=0x7b; i>0x7b-3*5; x+=2) |
| 198 | 194 | { |
| 199 | 195 | for (j=0; j<5; j++, i--, x+=2) |
| 200 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 201 | | x,y, |
| 202 | | 0, TRANSPARENCY_NONE,0); |
| 196 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 197 | x,y); |
| 203 | 198 | } |
| 204 | 199 | for (i=0x7b-6*5; i>0x7b-12*5; x+=2) |
| 205 | 200 | { |
| 206 | 201 | for (j=0; j<5; j++, i--, x+=2) |
| 207 | | drawgfx(bitmap, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 208 | | x,y, |
| 209 | | 0, TRANSPARENCY_NONE,0); |
| 202 | drawgfx_opaque(bitmap, 0, screen->machine->gfx[0], pc1403_lcd.reg[i],CONTRAST,0,0, |
| 203 | x,y); |
| 210 | 204 | } |
| 211 | 205 | } |
| 212 | 206 | /* if display is off, busy is always visible? it seems to behave like that. */ |
src/mess/video/nascom1.c
| r5095 | r5096 | |
| 15 | 15 | |
| 16 | 16 | for (sx = 0; sx < 48; sx++) |
| 17 | 17 | { |
| 18 | | drawgfx (bitmap, screen->machine->gfx[0], videoram[0x03ca + sx], |
| 19 | | 1, 0, 0, sx * 8, 0, NULL, |
| 20 | | TRANSPARENCY_NONE, 0); |
| 18 | drawgfx_opaque (bitmap, NULL, |
| 19 | screen->machine->gfx[0], videoram[0x03ca + sx], |
| 20 | 1, 0, 0, sx * 8, 0); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | for (sy = 0; sy < 15; sy++) |
| 24 | 24 | { |
| 25 | 25 | for (sx = 0; sx < 48; sx++) |
| 26 | 26 | { |
| 27 | | drawgfx (bitmap, screen->machine->gfx[0], videoram[0x000a + (sy * 64) + sx], |
| 28 | | 1, 0, 0, sx * 8, (sy + 1) * 16, NULL, |
| 29 | | TRANSPARENCY_NONE, 0); |
| 27 | drawgfx_opaque (bitmap, NULL, |
| 28 | screen->machine->gfx[0], videoram[0x000a + (sy * 64) + sx], |
| 29 | 1, 0, 0, sx * 8, (sy + 1) * 16); |
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | return 0; |
| r5095 | r5096 | |
| 38 | 38 | |
| 39 | 39 | for (sx = 0; sx < 48; sx++) |
| 40 | 40 | { |
| 41 | | drawgfx (bitmap, screen->machine->gfx[0], videoram[0x03ca + sx], |
| 42 | | 1, 0, 0, sx * 8, 0, NULL, |
| 43 | | TRANSPARENCY_NONE, 0); |
| 41 | drawgfx_opaque (bitmap, NULL, |
| 42 | screen->machine->gfx[0], videoram[0x03ca + sx], |
| 43 | 1, 0, 0, sx * 8, 0); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | for (sy = 0; sy < 15; sy++) |
| 47 | 47 | { |
| 48 | 48 | for (sx = 0; sx < 48; sx++) |
| 49 | 49 | { |
| 50 | | drawgfx (bitmap, screen->machine->gfx[0], videoram[0x000a + (sy * 64) + sx], |
| 51 | | 1, 0, 0, sx * 8, (sy + 1) * 14, NULL, |
| 52 | | TRANSPARENCY_NONE, 0); |
| 50 | drawgfx_opaque (bitmap, NULL, |
| 51 | screen->machine->gfx[0], videoram[0x000a + (sy * 64) + sx], |
| 52 | 1, 0, 0, sx * 8, (sy + 1) * 14); |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | return 0; |
src/mess/video/vdc8563.c
| r5095 | r5096 | |
| 430 | 430 | y++, rect.min_y+=height, rect.max_y+=height) { |
| 431 | 431 | for (x=0; x<w; x++, i=(i+1)&vdc.mask) { |
| 432 | 432 | if (vdc.dirty[i]) { |
| 433 | | drawgfx(bitmap,machine->gfx[0], |
| 433 | drawgfx_opaque(bitmap,&rect,machine->gfx[0], |
| 434 | 434 | vdc.ram[i], FRAMECOLOR|(MONOCOLOR<<4), 0, 0, |
| 435 | | machine->gfx[0]->width*x+8,height*y+height, |
| 436 | | &rect,TRANSPARENCY_NONE,0); |
| 435 | machine->gfx[0]->width*x+8,height*y+height); |
| 437 | 436 | if ((vdc.cursor_on)&&(i==(CRTC6845_CURSOR_POS&vdc.mask))) { |
| 438 | 437 | int k=height-CRTC6845_CURSOR_TOP; |
| 439 | 438 | if (CRTC6845_CURSOR_BOTTOM<height) k=CRTC6845_CURSOR_BOTTOM-CRTC6845_CURSOR_TOP+1; |
| r5095 | r5096 | |
| 534 | 533 | for (j=0; j<height; j++) { |
| 535 | 534 | k=((i<<4)+j)&vdc.mask; |
| 536 | 535 | if (vdc.dirty[k]) { |
| 537 | | drawgfx(bitmap,machine->gfx[1], |
| 536 | drawgfx_opaque(bitmap,&rect,machine->gfx[1], |
| 538 | 537 | vdc.ram[k], FRAMECOLOR|(MONOCOLOR<<4), 0, 0, |
| 539 | | machine->gfx[0]->width*x+8,height*y+height+j, |
| 540 | | &rect,TRANSPARENCY_NONE,0); |
| 538 | machine->gfx[0]->width*x+8,height*y+height+j); |
| 541 | 539 | vdc.dirty[k]=0; |
| 542 | 540 | } |
| 543 | 541 | } |
src/mess/video/intv.c
| r5095 | r5096 | |
| 437 | 437 | render_fg_bg_mode(machine, bitmap); |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | | /* |
| 440 | #ifdef UNUSED_CODE |
| 441 | 441 | static void draw_background(running_machine *machine, bitmap_t *bitmap, int transparency) |
| 442 | 442 | { |
| 443 | 443 | // First, draw the background |
| r5095 | r5096 | |
| 586 | 586 | } // next row |
| 587 | 587 | } |
| 588 | 588 | } |
| 589 | | */ |
| 589 | #endif |
| 590 | 590 | |
| 591 | 591 | /* TBD: need to handle sprites behind foreground? */ |
| 592 | 592 | /* |
| r5095 | r5096 | |
| 615 | 615 | intv_gramdirtybytes[code] = 0; |
| 616 | 616 | } |
| 617 | 617 | // Draw GRAM char |
| 618 | | drawgfxzoom(bitmap,machine->gfx[1], |
| 618 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[1], |
| 619 | 619 | code, |
| 620 | 620 | s->color, |
| 621 | 621 | s->xflip,s->yflip, |
| 622 | 622 | s->xpos*2-16,s->ypos*2-16, |
| 623 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 624 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 623 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 625 | 624 | } |
| 626 | 625 | else |
| 627 | 626 | { |
| r5095 | r5096 | |
| 639 | 638 | intv_gramdirtybytes[code+1] = 0; |
| 640 | 639 | } |
| 641 | 640 | // Draw GRAM char |
| 642 | | drawgfxzoom(bitmap,machine->gfx[1], |
| 641 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[1], |
| 643 | 642 | code, |
| 644 | 643 | s->color, |
| 645 | 644 | s->xflip,s->yflip, |
| 646 | 645 | s->xpos*2-16,s->ypos*2-16+(s->yflip)*s->ysize*8, |
| 647 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 648 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 649 | | drawgfxzoom(bitmap,machine->gfx[1], |
| 646 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 647 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[1], |
| 650 | 648 | code+1, |
| 651 | 649 | s->color, |
| 652 | 650 | s->xflip,s->yflip, |
| 653 | 651 | s->xpos*2-16,s->ypos*2-16+(1-s->yflip)*s->ysize*8, |
| 654 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 655 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 652 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 656 | 653 | } |
| 657 | 654 | } |
| 658 | 655 | else |
| r5095 | r5096 | |
| 660 | 657 | if (s->yres == 1) |
| 661 | 658 | { |
| 662 | 659 | // Draw GROM char |
| 663 | | drawgfxzoom(bitmap,machine->gfx[0], |
| 660 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[0], |
| 664 | 661 | code, |
| 665 | 662 | s->color, |
| 666 | 663 | s->xflip,s->yflip, |
| 667 | 664 | s->xpos*2-16,s->ypos*2-16, |
| 668 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 669 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 665 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 670 | 666 | } |
| 671 | 667 | else |
| 672 | 668 | { |
| 673 | | drawgfxzoom(bitmap,machine->gfx[0], |
| 669 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[0], |
| 674 | 670 | code, |
| 675 | 671 | s->color, |
| 676 | 672 | s->xflip,s->yflip, |
| 677 | 673 | s->xpos*2-16,s->ypos*2-16+(s->yflip)*s->ysize*8, |
| 678 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 679 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 680 | | drawgfxzoom(bitmap,machine->gfx[0], |
| 674 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 675 | drawgfxzoom_transpen(bitmap,&machine->screen[0].visarea,machine->gfx[0], |
| 681 | 676 | code+1, |
| 682 | 677 | s->color, |
| 683 | 678 | s->xflip,s->yflip, |
| 684 | 679 | s->xpos*2-16,s->ypos*2-16+(1-s->yflip)*s->ysize*8, |
| 685 | | &machine->screen[0].visarea,TRANSPARENCY_PEN,0, |
| 686 | | 0x8000*s->xsize, 0x8000*s->ysize); |
| 680 | 0x8000*s->xsize, 0x8000*s->ysize,0); |
| 687 | 681 | } |
| 688 | 682 | } |
| 689 | 683 | } |
| r5095 | r5096 | |
| 803 | 797 | for(x=0;x<40;x++) |
| 804 | 798 | { |
| 805 | 799 | offs = current_row*64+x; |
| 806 | | drawgfx(bitmap, screen->machine->gfx[2], |
| 800 | drawgfx_transpen(bitmap, NULL, |
| 801 | screen->machine->gfx[2], |
| 807 | 802 | videoram[offs], |
| 808 | 803 | 7, /* white */ |
| 809 | 804 | 0,0, |
| 810 | | x*8,y*8, |
| 811 | | NULL, |
| 812 | | TRANSPARENCY_PEN, 0); |
| 805 | x*8,y*8, 0); |
| 813 | 806 | } |
| 814 | 807 | if (current_row == tms9927_cursor_row) |
| 815 | 808 | { |
| 816 | 809 | /* draw the cursor as a solid white block */ |
| 817 | 810 | /* (should use a filled rect here!) */ |
| 818 | | drawgfx(bitmap, screen->machine->gfx[2], |
| 811 | drawgfx_transpen(bitmap, NULL, |
| 812 | screen->machine->gfx[2], |
| 819 | 813 | 191, /* a block */ |
| 820 | 814 | 7, /* white */ |
| 821 | 815 | 0,0, |
| 822 | | (tms9927_cursor_col-1)*8,y*8, |
| 823 | | NULL, |
| 824 | | TRANSPARENCY_PEN, 0); |
| 816 | (tms9927_cursor_col-1)*8,y*8, 0); |
| 825 | 817 | } |
| 826 | 818 | current_row = (current_row + 1) % tms9927_num_rows; |
| 827 | 819 | } |
| r5095 | r5096 | |
| 830 | 822 | #if 0 |
| 831 | 823 | // debugging |
| 832 | 824 | c = tape_motor_mode_desc[tape_motor_mode][0]; |
| 833 | | drawgfx(bitmap,machine->gfx[2], |
| 825 | drawgfx_transpen(bitmap,&machine->screen[0].visarea, machine->gfx[2], |
| 834 | 826 | c, |
| 835 | 827 | 1, |
| 836 | 828 | 0,0, |
| 837 | | 0*8,0*8, |
| 838 | | &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); |
| 829 | 0*8,0*8, 0); |
| 839 | 830 | for(y=0;y<5;y++) |
| 840 | 831 | { |
| 841 | | drawgfx(bitmap,machine->gfx[2], |
| 832 | drawgfx_transpen(bitmap,&machine->screen[0].visarea, machine->gfx[2], |
| 842 | 833 | tape_unknown_write[y]+'0', |
| 843 | 834 | 1, |
| 844 | 835 | 0,0, |
| 845 | | 0*8,(y+2)*8, |
| 846 | | &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); |
| 836 | 0*8,(y+2)*8, 0); |
| 847 | 837 | } |
| 848 | | drawgfx(bitmap,machine->gfx[2], |
| 838 | drawgfx_transpen(bitmap,&machine->screen[0].visarea, machine->gfx[2], |
| 849 | 839 | tape_unknown_write[5]+'0', |
| 850 | 840 | 1, |
| 851 | 841 | 0,0, |
| 852 | | 0*8,8*8, |
| 853 | | &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); |
| 854 | | drawgfx(bitmap,machine->gfx[2], |
| 842 | 0*8,8*8, 0); |
| 843 | drawgfx_transpen(bitmap,&machine->screen[0].visarea, machine->gfx[2], |
| 855 | 844 | tape_interrupts_enabled+'0', |
| 856 | 845 | 1, |
| 857 | 846 | 0,0, |
| 858 | | 0*8,10*8, |
| 859 | | &machine->screen[0].visarea, TRANSPARENCY_PEN, 0); |
| 847 | 0*8,10*8, 0); |
| 860 | 848 | #endif |
| 861 | 849 | return 0; |
| 862 | 850 | } |
src/mess/video/saa5050.c
| r5095 | r5096 | |
| 225 | 225 | colour = saa5050_state.saa5050_forecol | (saa5050_state.saa5050_backcol << 3); |
| 226 | 226 | if (saa5050_state.saa5050_flags & SAA5050_DBLHI) |
| 227 | 227 | { |
| 228 | | drawgfx (bitmap, screen->machine->gfx[1], code, colour, 0, 0, |
| 229 | | sx * 6, sy * 10, NULL, TRANSPARENCY_NONE, 0); |
| 230 | | drawgfx (bitmap, screen->machine->gfx[2], code, colour, 0, 0, |
| 231 | | sx * 6, (sy + 1) * 10, NULL, TRANSPARENCY_NONE, 0); |
| 228 | drawgfx_opaque (bitmap, NULL, screen->machine->gfx[1], code, colour, 0, 0, |
| 229 | sx * 6, sy * 10); |
| 230 | drawgfx_opaque (bitmap, NULL, screen->machine->gfx[2], code, colour, 0, 0, |
| 231 | sx * 6, (sy + 1) * 10); |
| 232 | 232 | } |
| 233 | 233 | else |
| 234 | 234 | { |
| 235 | | drawgfx (bitmap, screen->machine->gfx[0], code, colour, 0, 0, |
| 236 | | sx * 6, sy * 10, NULL, TRANSPARENCY_NONE, 0); |
| 235 | drawgfx_opaque (bitmap, NULL, screen->machine->gfx[0], code, colour, 0, 0, |
| 236 | sx * 6, sy * 10); |
| 237 | 237 | } |
| 238 | 238 | } |
| 239 | 239 | if (saa5050_state.saa5050_flags & SAA5050_DBLHI) |
src/mess/video/vtech2.c
| r5095 | r5096 | |
| 149 | 149 | sy = BORDER_V/2 + y; |
| 150 | 150 | sx = BORDER_H/2 + x * 8; |
| 151 | 151 | code = videoram[offs]; |
| 152 | | drawgfx(bitmap,screen->machine->gfx[2],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 152 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[2],code,color,0,0,sx,sy); |
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | break; |
| r5095 | r5096 | |
| 169 | 169 | sx = BORDER_H/2 + x * 16; |
| 170 | 170 | code = videoram[offs]; |
| 171 | 171 | color = videoram[offs+1]; |
| 172 | | drawgfx(bitmap,screen->machine->gfx[3],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 172 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[3],code,color,0,0,sx,sy); |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | break; |
| r5095 | r5096 | |
| 188 | 188 | sy = BORDER_V/2 + y; |
| 189 | 189 | sx = BORDER_H/2 + x * 8; |
| 190 | 190 | code = videoram[offs]; |
| 191 | | drawgfx(bitmap,screen->machine->gfx[5],code,0,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 191 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[5],code,0,0,0,sx,sy); |
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | break; |
| r5095 | r5096 | |
| 208 | 208 | sy = BORDER_V/2 + y * 2; |
| 209 | 209 | sx = BORDER_H/2 + x * 8; |
| 210 | 210 | code = videoram[offs]; |
| 211 | | drawgfx(bitmap,screen->machine->gfx[6],code,0,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 211 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[6],code,0,0,0,sx,sy); |
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | break; |
| r5095 | r5096 | |
| 227 | 227 | sy = BORDER_V/2 + y; |
| 228 | 228 | sx = BORDER_H/2 + x * 16; |
| 229 | 229 | code = videoram[offs]; |
| 230 | | drawgfx(bitmap,screen->machine->gfx[3],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 230 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[3],code,color,0,0,sx,sy); |
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | break; |
| r5095 | r5096 | |
| 247 | 247 | sx = BORDER_H/2 + x * 32; |
| 248 | 248 | code = videoram[offs]; |
| 249 | 249 | color = videoram[offs+1]; |
| 250 | | drawgfx(bitmap,screen->machine->gfx[4],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 250 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[4],code,color,0,0,sx,sy); |
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | break; |
| r5095 | r5096 | |
| 268 | 268 | sy = BORDER_V/2 + y * 8; |
| 269 | 269 | sx = BORDER_H/2 + x * 8; |
| 270 | 270 | code = videoram[0x3800+offs]; |
| 271 | | drawgfx(bitmap,screen->machine->gfx[0],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 271 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],code,color,0,0,sx,sy); |
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | } |
| r5095 | r5096 | |
| 285 | 285 | sx = BORDER_H/2 + x * 16; |
| 286 | 286 | code = videoram[0x3800+offs]; |
| 287 | 287 | color = videoram[0x3801+offs]; |
| 288 | | drawgfx(bitmap,screen->machine->gfx[1],code,color,0,0,sx,sy,cliprect,TRANSPARENCY_NONE,0); |
| 288 | drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[1],code,color,0,0,sx,sy); |
| 289 | 289 | } |
| 290 | 290 | } |
| 291 | 291 | } |