src/mess/video/apple1.c
| r1948 | r1949 | |
| 61 | 61 | ***************************************************************************/ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | | #include "deprecat.h" |
| 65 | 64 | #include "includes/apple1.h" |
| 66 | 65 | #include "mscommon.h" |
| 67 | 66 | |
| r1948 | r1949 | |
| 176 | 175 | signal in response to a video display write. This signal indicates |
| 177 | 176 | the display has completed the write and is ready to accept another |
| 178 | 177 | write. */ |
| 179 | | attotime apple1_vh_dsp_time_to_ready (void) |
| 178 | attotime apple1_vh_dsp_time_to_ready (running_machine *machine) |
| 180 | 179 | { |
| 181 | 180 | int cursor_x, cursor_y; |
| 182 | 181 | int cursor_scanline; |
| r1948 | r1949 | |
| 206 | 205 | still use it to find what fraction of the current scanline |
| 207 | 206 | period has elapsed. */ |
| 208 | 207 | double current_hfrac = video_screen_get_hpos(0) / |
| 209 | | Machine->screen[0].width; |
| 208 | machine->screen[0].width; |
| 210 | 209 | if (current_hfrac < cursor_hfrac) |
| 211 | 210 | return double_to_attotime(scanline_period * (cursor_hfrac - current_hfrac)); |
| 212 | 211 | } |