Previous 15994 Revisions Next

r1934 Tuesday 11th March, 2008 at 21:26:09 UTC by Wilbert Pol
Removed deprecat.h depedency from video/pcw16.c
[src/mess/video]pcw16.c

src/mess/video/pcw16.c
r1933r1934
11#include "driver.h"
2#include "deprecat.h"
32#include "includes/pcw16.h"
43
54int pcw16_colour_palette[16];
r1933r1934
6665}
6766
6867/* 640, 1 bit per pixel */
69static void pcw16_vh_decode_mode0(bitmap_t *bitmap, int x, int y, unsigned char byte)
68static void pcw16_vh_decode_mode0(running_machine *machine, bitmap_t *bitmap, int x, int y, unsigned char byte)
7069{
7170   int b;
7271   int local_byte;
r1933r1934
7574
7675   local_byte = byte;
7776
78   cols[0] = Machine->pens[pcw16_colour_palette[0]];
79   cols[1] = Machine->pens[pcw16_colour_palette[1]];
77   cols[0] = machine->pens[pcw16_colour_palette[0]];
78   cols[1] = machine->pens[pcw16_colour_palette[1]];
8079
8180   px = x;
8281   for (b=0; b<8; b++)
r1933r1934
8988}
9089
9190/* 320, 2 bits per pixel */
92static void pcw16_vh_decode_mode1(bitmap_t *bitmap, int x, int y, unsigned char byte)
91static void pcw16_vh_decode_mode1(running_machine *machine, bitmap_t *bitmap, int x, int y, unsigned char byte)
9392{
9493   int b;
9594   int px;
r1933r1934
9897
9998   for (b=0; b<3; b++)
10099   {
101      cols[b] = Machine->pens[pcw16_colour_palette[b]];
100      cols[b] = machine->pens[pcw16_colour_palette[b]];
102101   }
103102
104103   local_byte = byte;
r1933r1934
120119}
121120
122121/* 160, 4 bits per pixel */
123static void pcw16_vh_decode_mode2(bitmap_t *bitmap, int x, int y, unsigned char byte)
122static void pcw16_vh_decode_mode2(running_machine *machine, bitmap_t *bitmap, int x, int y, unsigned char byte)
124123{
125124   int px;
126125   int b;
127126   int local_byte;
128127   int cols[2];
129128
130   cols[0] = Machine->pens[pcw16_colour_palette[0]];
131   cols[1] = Machine->pens[pcw16_colour_palette[1]];
129   cols[0] = machine->pens[pcw16_colour_palette[0]];
130   cols[1] = machine->pens[pcw16_colour_palette[1]];
132131   local_byte = byte;
133132
134133   px = x;
r1933r1934
249248            {
250249               case 0:
251250               {
252                  pcw16_vh_decode_mode0(bitmap,x,y+PCW16_BORDER_HEIGHT,byte);
251                  pcw16_vh_decode_mode0(machine, bitmap,x,y+PCW16_BORDER_HEIGHT,byte);
253252               }
254253               break;
255254
256255               case 1:
257256               {
258                  pcw16_vh_decode_mode1(bitmap, x,y+PCW16_BORDER_HEIGHT, byte);
257                  pcw16_vh_decode_mode1(machine, bitmap, x,y+PCW16_BORDER_HEIGHT, byte);
259258               }
260259               break;
261260
262261               case 3:
263262               case 2:
264263               {
265                  pcw16_vh_decode_mode2(bitmap, x, y+PCW16_BORDER_HEIGHT, byte);
264                  pcw16_vh_decode_mode2(machine, bitmap, x, y+PCW16_BORDER_HEIGHT, byte);
266265               }
267266               break;
268267            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team