src/mess/video/oric.c
| r1935 | r1936 | |
| 11 | 11 | ***************************************************************************/ |
| 12 | 12 | |
| 13 | 13 | #include "driver.h" |
| 14 | | #include "deprecat.h" |
| 15 | 14 | #include "includes/oric.h" |
| 16 | 15 | |
| 17 | 16 | static void oric_vh_update_flash(void); |
| r1935 | r1936 | |
| 198 | 197 | |
| 199 | 198 | /* render 6-pixels using foreground and background colours specified */ |
| 200 | 199 | /* used in hires and text mode */ |
| 201 | | static void oric_vh_render_6pixels(bitmap_t *bitmap,int x,int y, int fg, int bg,int data, int invert_flag) |
| 200 | static void oric_vh_render_6pixels(running_machine *machine, bitmap_t *bitmap,int x,int y, int fg, int bg,int data, int invert_flag) |
| 202 | 201 | { |
| 203 | 202 | int i; |
| 204 | 203 | int pens[2]; |
| r1935 | r1936 | |
| 211 | 210 | bg ^=0x07; |
| 212 | 211 | } |
| 213 | 212 | |
| 214 | | pens[1] = Machine->pens[fg]; |
| 215 | | pens[0] = Machine->pens[bg]; |
| 213 | pens[1] = machine->pens[fg]; |
| 214 | pens[0] = machine->pens[bg]; |
| 216 | 215 | |
| 217 | 216 | px = x; |
| 218 | 217 | for (i=0; i<6; i++) |
| r1935 | r1936 | |
| 307 | 306 | oric_vh_update_attribute(c); |
| 308 | 307 | |
| 309 | 308 | /* 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)); |
| 311 | 310 | |
| 312 | 311 | if (y<200) |
| 313 | 312 | { |
| r1935 | r1936 | |
| 331 | 330 | { |
| 332 | 331 | int pixel_data = c & 0x03f; |
| 333 | 332 | /* 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)); |
| 335 | 334 | } |
| 336 | 335 | else |
| 337 | 336 | { |
| r1935 | r1936 | |
| 358 | 357 | char_data = vh_state.char_data[(char_index<<3) | ch_line] & 0x03f; |
| 359 | 358 | |
| 360 | 359 | /* draw! */ |
| 361 | | oric_vh_render_6pixels(bitmap,x,y, |
| 360 | oric_vh_render_6pixels(machine, bitmap,x,y, |
| 362 | 361 | vh_state.active_foreground_colour, |
| 363 | 362 | vh_state.active_background_colour, char_data, (c & 0x080)); |
| 364 | 363 | } |