Previous 15994 Revisions Next

r1949 Tuesday 11th March, 2008 at 22:26:11 UTC by Wilbert Pol
Removed deprecat.h dependency from video/apple1.c
[src/mess/includes]apple1.h
[src/mess/machine]apple1.c
[src/mess/video]apple1.c

src/mess/includes/apple1.h
r1948r1949
2727
2828void apple1_vh_dsp_w (int data);
2929void apple1_vh_dsp_clr (void);
30attotime apple1_vh_dsp_time_to_ready (void);
30attotime apple1_vh_dsp_time_to_ready (running_machine *machine);
3131
3232extern int apple1_vh_clrscrn_pressed;
3333
src/mess/video/apple1.c
r1948r1949
6161***************************************************************************/
6262
6363#include "driver.h"
64#include "deprecat.h"
6564#include "includes/apple1.h"
6665#include "mscommon.h"
6766
r1948r1949
176175   signal in response to a video display write.  This signal indicates
177176   the display has completed the write and is ready to accept another
178177   write. */
179attotime apple1_vh_dsp_time_to_ready (void)
178attotime apple1_vh_dsp_time_to_ready (running_machine *machine)
180179{
181180   int cursor_x, cursor_y;
182181   int cursor_scanline;
r1948r1949
206205         still use it to find what fraction of the current scanline
207206         period has elapsed. */
208207      double current_hfrac = video_screen_get_hpos(0) /
209                        Machine->screen[0].width;
208                        machine->screen[0].width;
210209      if (current_hfrac < cursor_hfrac)
211210         return double_to_attotime(scanline_period * (cursor_hfrac - current_hfrac));
212211   }
src/mess/machine/apple1.c
r1948r1949
413413      write.  Thus the write delay depends on the cursor position and
414414      where the display is in the refresh cycle. */
415415   if (!data)
416      timer_set(apple1_vh_dsp_time_to_ready(), NULL, 0, apple1_dsp_ready_start);
416      timer_set(apple1_vh_dsp_time_to_ready(machine), NULL, 0, apple1_dsp_ready_start);
417417}
418418
419419static TIMER_CALLBACK(apple1_dsp_ready_start)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team