Previous 15994 Revisions Next

r1927 Tuesday 11th March, 2008 at 21:06:13 UTC by Wilbert Pol
Removed deprecat.h and mslegacy.h dependency from video/ssystem3.c
[src/mess/video]ssystem3.c

src/mess/video/ssystem3.c
r1926r1927
33******************************************************************************/
44
55#include "driver.h"
6#include "deprecat.h"
7#include "mslegacy.h"
8
96#include "includes/ssystem3.h"
107
118UINT8 ssystem3_led[5]= {0};
r1926r1927
2017
2118PALETTE_INIT( ssystem3 )
2219{
23   palette_set_colors_rgb(machine, 0, ssystem3_palette, sizeof(ssystem3_palette) / 3);
20   int i;
21
22   for ( i = 0; i < sizeof(ssystem3_palette) / 3; i++ ) {
23      palette_set_color_rgb(machine, i, ssystem3_palette[i*3], ssystem3_palette[i*3+1], ssystem3_palette[i*3+2]);
24   }
2425}
2526
2627
r1926r1927
6162    "  dddddddddddd"
6263};
6364
64static void ssystem3_draw_7segment(bitmap_t *bitmap,int value, int x, int y)
65static void ssystem3_draw_7segment(running_machine *machine, bitmap_t *bitmap,int value, int x, int y)
6566{
6667   int i, xi, yi, mask, color;
6768
r1926r1927
8283      }
8384
8485      if (mask!=0) {
85         color=Machine->pens[(value&mask)?1:0];
86         color=machine->pens[(value&mask)?1:0];
8687         *BITMAP_ADDR16(bitmap, y+yi, x+xi) = color;
8788      }
8889      if (led[i]!='\r') xi++;
r1926r1927
167168   int i;
168169
169170   for (i=0; i<4; i++) {
170      ssystem3_draw_7segment(bitmap, ssystem3_led[i]&0x7f, ssystem3_led_pos[i].x,
171      ssystem3_draw_7segment(machine, bitmap, ssystem3_led[i]&0x7f, ssystem3_led_pos[i].x,
171172                        ssystem3_led_pos[i].y);
172173   }
173174

Previous 15994 Revisions Next


© 1998-2018 The MESS Team