Previous 199869 Revisions Next

r26786 Friday 27th December, 2013 at 20:07:20 UTC by Couriersud
Hopefully fix windows build: Commit two files which escaped my attention. No NW.
[src/emu/video]fixfreq.c fixfreq.h

trunk/src/emu/video/fixfreq.c
r26785r26786
245245   return 0;
246246}
247247
248void fixedfreq_device::update_vid(double newval, attotime cur_time)
248NETDEV_ANALOG_CALLBACK_MEMBER(fixedfreq_device::update_vid)
249249{
250250   bitmap_rgb32 *bm = m_bitmap[m_cur_bm];
251251   const int has_fields = (m_fieldcount > 1) ? 1: 0;
252252
253   int pixels = round((cur_time - m_line_time).as_double() / m_clock_period.as_double());
254   attotime time = (cur_time - m_last_time);
253   int pixels = round((time - m_line_time).as_double() / m_clock_period.as_double());
254   attotime delta_time = (time - m_last_time);
255255
256   if (newval == m_vid)
256   if (data == m_vid)
257257      return;
258258
259   ATTR_UNUSED int sync = sync_separator(time, newval);
259   ATTR_UNUSED int sync = sync_separator(delta_time, data);
260260
261261   if (m_last_y < bm->height())
262262   {
r26785r26786
297297      m_last_y = m_vbackporch - m_vsync; // 6; // FIXME: needed for pong - need to be able to adjust screen parameters
298298      // toggle bitmap
299299      m_cur_bm ^= 1;
300      update_screen_parameters(cur_time - m_last_vsync_time);
301      m_last_vsync_time = cur_time;
300      update_screen_parameters(time - m_last_vsync_time);
301      m_last_vsync_time = time;
302302   }
303303
304304   if ((sync & 2) && !m_sig_vsync)
305305   {
306306      m_last_y += m_fieldcount;
307307      m_last_x = 0;
308      m_line_time = cur_time;
308      m_line_time = time;
309309   }
310310
311   m_last_time = cur_time;
312   m_vid = newval;
311   m_last_time = time;
312   m_vid = data;
313313
314314}
315315
trunk/src/emu/video/fixfreq.h
r26785r26786
1313#define FIXFREQ_H
1414
1515#include "emu.h"
16#include "machine/netlist.h"
1617
1718#define FIXFREQ_INTERFACE(name) \
1819   const fixedfreq_interface (name) =
r26785r26786
5657
5758   virtual UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
5859
59   void update_vid(const double newval, const attotime cur_time);
60   NETDEV_ANALOG_CALLBACK_MEMBER(update_vid);
6061
6162protected:
6263   // device-level overrides

Previous 199869 Revisions Next


© 1997-2024 The MAME Team