src/mess/video/intv.c
| r2048 | r2049 | |
| 2 | 2 | #include "includes/intv.h" |
| 3 | 3 | #include "video/stic.h" |
| 4 | 4 | |
| 5 | | /* Due to palette changes in the 0.123 to 0.124 cycle, it is likely that most colours will |
| 6 | | be incorrect. You may need to change "color" to "(color<<1)+1" in various places. */ |
| 7 | | |
| 8 | 5 | #define FOREGROUND_BIT 0x0010 |
| 9 | 6 | |
| 10 | 7 | INLINE void intv_plot_pixel(bitmap_t *bitmap, int x, int y, UINT32 color) |
| r2048 | r2049 | |
| 261 | 258 | static void render_colored_squares(running_machine *machine, bitmap_t *bitmap, |
| 262 | 259 | UINT16 x, UINT16 y, UINT8 color0, UINT8 color1, UINT8 color2, UINT8 color3) |
| 263 | 260 | { |
| 264 | | plot_box(bitmap, x, y, 8, 8, color0); |
| 265 | | plot_box(bitmap, x+8, y, 8, 8, color1); |
| 266 | | plot_box(bitmap, x, y+8, 8, 8, color2); |
| 267 | | plot_box(bitmap, x+8, y+8, 8, 8, color3); |
| 261 | plot_box(bitmap, x, y, 8, 8, (color0<<1)+1); |
| 262 | plot_box(bitmap, x+8, y, 8, 8, (color1<<1)+1); |
| 263 | plot_box(bitmap, x, y+8, 8, 8, (color2<<1)+1); |
| 264 | plot_box(bitmap, x+8, y+8, 8, 8, (color3<<1)+1); |
| 268 | 265 | } |
| 269 | 266 | |
| 270 | 267 | static void render_color_stack_mode(running_machine *machine, bitmap_t *bitmap) |
| r2048 | r2049 | |
| 479 | 476 | if (colorb == 7) colorb = intv_color_stack[3]; |
| 480 | 477 | if (colorc == 7) colorc = intv_color_stack[3]; |
| 481 | 478 | if (colord == 7) colord = intv_color_stack[3]; |
| 482 | | plot_box(bitmap,col*16,row*16,8,8,colora); |
| 483 | | plot_box(bitmap,col*16+8,row*16,8,8,colorb); |
| 484 | | plot_box(bitmap,col*16,row*16+8,8,8,colorc); |
| 485 | | plot_box(bitmap,col*16+8,row*16+8,8,8,colord); |
| 479 | plot_box(bitmap,col*16,row*16,8,8,(colora<<1)+1); |
| 480 | plot_box(bitmap,col*16+8,row*16,8,8,(colorb<<1)+1); |
| 481 | plot_box(bitmap,col*16,row*16+8,8,8,(colorc<<1)+1); |
| 482 | plot_box(bitmap,col*16+8,row*16+8,8,8,(colord<<1)+1); |
| 486 | 483 | } |
| 487 | 484 | else // normal color stack mode |
| 488 | 485 | { |
| r2048 | r2049 | |
| 694 | 691 | static void draw_borders(running_machine *machine, bitmap_t *bm) |
| 695 | 692 | { |
| 696 | 693 | if (intv_left_edge_inhibit) |
| 697 | | plot_box(bm, 0, 0, 16-intv_col_delay*2, 16*12, intv_border_color); |
| 694 | plot_box(bm, 0, 0, 16-intv_col_delay*2, 16*12, (intv_border_color<<1)+1); |
| 698 | 695 | |
| 699 | 696 | if (intv_top_edge_inhibit) |
| 700 | | plot_box(bm, 0, 0, 16*20, 16-intv_row_delay*2, intv_border_color); |
| 697 | plot_box(bm, 0, 0, 16*20, 16-intv_row_delay*2, (intv_border_color<<1)+1); |
| 701 | 698 | } |
| 702 | 699 | |
| 703 | 700 | static int col_delay = 0; |