Previous 15994 Revisions Next

r1723 Sunday 24th February, 2008 at 17:30:18 UTC by R. Belmont
[AVIGO] A little more cleanup. Need to fix the pointer still.
[src/mess/video]avigo.c

src/mess/video/avigo.c
r1722r1723
2727static int stylus_x;
2828static int stylus_y;
2929
30
31/* colour table filled in from avigo colour table*/
32static UINT32 stylus_color_table[3] = {0,0,0};
33
3430static const gfx_layout pointerlayout =
3531{
3632   8, 8,
r1722r1723
116112
117113VIDEO_START( avigo )
118114{
119    /* current selected column to read/write */
120    avigo_screen_column = 0;
115   /* current selected column to read/write */
116   avigo_screen_column = 0;
121117
122    /* allocate video memory */
123    avigo_video_memory = auto_malloc(((AVIGO_SCREEN_WIDTH>>3)*AVIGO_SCREEN_HEIGHT));
118   /* allocate video memory */
119   avigo_video_memory = auto_malloc(((AVIGO_SCREEN_WIDTH>>3)*AVIGO_SCREEN_HEIGHT));
124120   machine->gfx[0] = stylus_pointer = allocgfx(&pointerlayout);
121
125122   decodegfx(stylus_pointer, pointermask, 0, 1);
126123   stylus_pointer->total_colors = 3;
127   stylus_color_table[1] = machine->pens[0];
128   stylus_color_table[2] = machine->pens[1];
129124}
130125
131126/* Initialise the palette */
r1722r1723
135130   palette_set_color(machine,1,MAKE_RGB(0x00,0x00,0x00)); /* black  */
136131}
137132
138static unsigned int avigo_ad_x;
139static unsigned int avigo_ad_y;
133//static unsigned int avigo_ad_x;
134//static unsigned int avigo_ad_y;
140135
141136/***************************************************************************
142137  Draw the game screen in the given mame_bitmap.

Previous 15994 Revisions Next


© 1998-2018 The MESS Team