Previous 15994 Revisions Next

r2049 Friday 21st March, 2008 at 23:36:08 UTC by Robbbert
[INTV] Another colour fix applied.
[src/mess/video]intv.c

src/mess/video/intv.c
r2048r2049
22#include "includes/intv.h"
33#include "video/stic.h"
44
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
85#define FOREGROUND_BIT 0x0010
96
107INLINE void intv_plot_pixel(bitmap_t *bitmap, int x, int y, UINT32 color)
r2048r2049
261258static void render_colored_squares(running_machine *machine, bitmap_t *bitmap,
262259   UINT16 x, UINT16 y, UINT8 color0, UINT8 color1, UINT8 color2, UINT8 color3)
263260{
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);
268265}
269266
270267static void render_color_stack_mode(running_machine *machine, bitmap_t *bitmap)
r2048r2049
479476               if (colorb == 7) colorb = intv_color_stack[3];
480477               if (colorc == 7) colorc = intv_color_stack[3];
481478               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);
486483            }
487484            else // normal color stack mode
488485            {
r2048r2049
694691static void draw_borders(running_machine *machine, bitmap_t *bm)
695692{
696693   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);
698695
699696   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);
701698}
702699
703700static int col_delay = 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team