src/mess/video/coco.c
| r2031 | r2032 | |
| 16 | 16 | |
| 17 | 17 | ***************************************************************************/ |
| 18 | 18 | |
| 19 | | #include <assert.h> |
| 20 | | #include <math.h> |
| 21 | | |
| 22 | 19 | #include "driver.h" |
| 23 | 20 | #include "deprecat.h" |
| 24 | 21 | #include "machine/6821pia.h" |
| r2031 | r2032 | |
| 64 | 61 | |
| 65 | 62 | |
| 66 | 63 | |
| 67 | | static void internal_video_start_coco(m6847_type type) |
| 64 | static void internal_video_start_coco(running_machine *machine, m6847_type type) |
| 68 | 65 | { |
| 69 | 66 | m6847_config cfg; |
| 70 | 67 | |
| r2031 | r2032 | |
| 73 | 70 | |
| 74 | 71 | /* NPW 14-May-2006 - Ugly hack; using CPU timing factor seems to break some |
| 75 | 72 | * Dragon games */ |
| 76 | | if (Machine->gamedrv->name[0] == 'c') |
| 73 | if (machine->gamedrv->name[0] == 'c') |
| 77 | 74 | cfg.cpu0_timing_factor = 4; |
| 78 | 75 | |
| 79 | 76 | cfg.get_attributes = coco_get_attributes; |
| r2031 | r2032 | |
| 88 | 85 | |
| 89 | 86 | VIDEO_START( dragon ) |
| 90 | 87 | { |
| 91 | | internal_video_start_coco(M6847_VERSION_ORIGINAL_PAL); |
| 88 | internal_video_start_coco(machine, M6847_VERSION_ORIGINAL_PAL); |
| 92 | 89 | } |
| 93 | 90 | |
| 94 | 91 | VIDEO_START( coco ) |
| 95 | 92 | { |
| 96 | | internal_video_start_coco(M6847_VERSION_ORIGINAL_NTSC); |
| 93 | internal_video_start_coco(machine, M6847_VERSION_ORIGINAL_NTSC); |
| 97 | 94 | } |
| 98 | 95 | |
| 99 | 96 | VIDEO_START( coco2b ) |
| 100 | 97 | { |
| 101 | | internal_video_start_coco(M6847_VERSION_M6847T1_NTSC); |
| 98 | internal_video_start_coco(machine, M6847_VERSION_M6847T1_NTSC); |
| 102 | 99 | } |
| 103 | 100 | |
src/mess/video/kc.c
| r2031 | r2032 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | | #include "deprecat.h" |
| 11 | 10 | #include "includes/kc.h" |
| 12 | 11 | #include "eventlst.h" |
| 13 | 12 | |
| r2031 | r2032 | |
| 110 | 109 | }; |
| 111 | 110 | |
| 112 | 111 | /* set new blink state - record blink state in event list */ |
| 113 | | void kc85_video_set_blink_state(int data) |
| 112 | void kc85_video_set_blink_state(running_machine *machine, int data) |
| 114 | 113 | { |
| 115 | | EventList_AddItemOffset(KC85_VIDEO_EVENT_SET_BLINK_STATE, ((data & 0x01)<<7), ATTOTIME_TO_CYCLES(0, attotime_mul(video_screen_get_scan_period(Machine->primary_screen), video_screen_get_vpos(Machine->primary_screen)))); |
| 114 | EventList_AddItemOffset(KC85_VIDEO_EVENT_SET_BLINK_STATE, ((data & 0x01)<<7), ATTOTIME_TO_CYCLES(0, attotime_mul(video_screen_get_scan_period(machine->primary_screen), video_screen_get_vpos(machine->primary_screen)))); |
| 116 | 115 | } |
| 117 | 116 | |
| 118 | 117 | |