Previous 15994 Revisions Next

r1936 Tuesday 11th March, 2008 at 21:30:23 UTC by Wilbert Pol
Removed deprecat.h dependency from video/oric.c
[src/mess/video]oric.c

src/mess/video/oric.c
r1935r1936
1111***************************************************************************/
1212
1313#include "driver.h"
14#include "deprecat.h"
1514#include "includes/oric.h"
1615
1716static void oric_vh_update_flash(void);
r1935r1936
198197
199198/* render 6-pixels using foreground and background colours specified */
200199/* used in hires and text mode */
201static void oric_vh_render_6pixels(bitmap_t *bitmap,int x,int y, int fg, int bg,int data, int invert_flag)
200static void oric_vh_render_6pixels(running_machine *machine, bitmap_t *bitmap,int x,int y, int fg, int bg,int data, int invert_flag)
202201{
203202   int i;
204203   int pens[2];
r1935r1936
211210      bg ^=0x07;
212211   }
213212
214   pens[1] = Machine->pens[fg];
215   pens[0] = Machine->pens[bg];
213   pens[1] = machine->pens[fg];
214   pens[0] = machine->pens[bg];
216215
217216   px = x;
218217   for (i=0; i<6; i++)
r1935r1936
307306            oric_vh_update_attribute(c);
308307
309308            /* display background colour when attribute has been found */
310            oric_vh_render_6pixels(bitmap,x,y,vh_state.active_foreground_colour, vh_state.active_background_colour, 0,(c & 0x080));
309            oric_vh_render_6pixels(machine, bitmap,x,y,vh_state.active_foreground_colour, vh_state.active_background_colour, 0,(c & 0x080));
311310
312311            if (y<200)
313312            {
r1935r1936
331330            {
332331               int pixel_data = c & 0x03f;
333332               /* plot hires pixels */
334               oric_vh_render_6pixels(bitmap,x,y,vh_state.active_foreground_colour, vh_state.active_background_colour, pixel_data,(c & 0x080));
333               oric_vh_render_6pixels(machine, bitmap,x,y,vh_state.active_foreground_colour, vh_state.active_background_colour, pixel_data,(c & 0x080));
335334            }
336335            else
337336            {
r1935r1936
358357               char_data = vh_state.char_data[(char_index<<3) | ch_line] & 0x03f;
359358
360359               /* draw! */
361               oric_vh_render_6pixels(bitmap,x,y,
360               oric_vh_render_6pixels(machine, bitmap,x,y,
362361                  vh_state.active_foreground_colour,
363362                  vh_state.active_background_colour, char_data, (c & 0x080));
364363            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team