src/mess/video/avigo.c
| r1722 | r1723 | |
| 27 | 27 | static int stylus_x; |
| 28 | 28 | static int stylus_y; |
| 29 | 29 | |
| 30 | | |
| 31 | | /* colour table filled in from avigo colour table*/ |
| 32 | | static UINT32 stylus_color_table[3] = {0,0,0}; |
| 33 | | |
| 34 | 30 | static const gfx_layout pointerlayout = |
| 35 | 31 | { |
| 36 | 32 | 8, 8, |
| r1722 | r1723 | |
| 116 | 112 | |
| 117 | 113 | VIDEO_START( avigo ) |
| 118 | 114 | { |
| 119 | | /* current selected column to read/write */ |
| 120 | | avigo_screen_column = 0; |
| 115 | /* current selected column to read/write */ |
| 116 | avigo_screen_column = 0; |
| 121 | 117 | |
| 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)); |
| 124 | 120 | machine->gfx[0] = stylus_pointer = allocgfx(&pointerlayout); |
| 121 | |
| 125 | 122 | decodegfx(stylus_pointer, pointermask, 0, 1); |
| 126 | 123 | stylus_pointer->total_colors = 3; |
| 127 | | stylus_color_table[1] = machine->pens[0]; |
| 128 | | stylus_color_table[2] = machine->pens[1]; |
| 129 | 124 | } |
| 130 | 125 | |
| 131 | 126 | /* Initialise the palette */ |
| r1722 | r1723 | |
| 135 | 130 | palette_set_color(machine,1,MAKE_RGB(0x00,0x00,0x00)); /* black */ |
| 136 | 131 | } |
| 137 | 132 | |
| 138 | | static unsigned int avigo_ad_x; |
| 139 | | static unsigned int avigo_ad_y; |
| 133 | //static unsigned int avigo_ad_x; |
| 134 | //static unsigned int avigo_ad_y; |
| 140 | 135 | |
| 141 | 136 | /*************************************************************************** |
| 142 | 137 | Draw the game screen in the given mame_bitmap. |