summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/screen.c')
-rw-r--r--src/emu/screen.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/emu/screen.c b/src/emu/screen.c
index e4912490425..c51bbf555e4 100644
--- a/src/emu/screen.c
+++ b/src/emu/screen.c
@@ -48,8 +48,8 @@
// DEBUGGING
//**************************************************************************
-#define VERBOSE (0)
-#define LOG_PARTIAL_UPDATES(x) do { if (VERBOSE) logerror x; } while (0)
+#define VERBOSE (0)
+#define LOG_PARTIAL_UPDATES(x) do { if (VERBOSE) logerror x; } while (0)
@@ -74,34 +74,34 @@ UINT32 screen_device::m_id_counter = 0;
screen_device::screen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SCREEN, "Video Screen", tag, owner, clock),
- m_type(SCREEN_TYPE_RASTER),
- m_oldstyle_vblank_supplied(false),
- m_refresh(0),
- m_vblank(0),
- m_xoffset(0.0f),
- m_yoffset(0.0f),
- m_xscale(1.0f),
- m_yscale(1.0f),
- m_container(NULL),
- m_width(100),
- m_height(100),
- m_visarea(0, 99, 0, 99),
- m_curbitmap(0),
- m_curtexture(0),
- m_changed(true),
- m_last_partial_scan(0),
- m_frame_period(DEFAULT_FRAME_PERIOD.as_attoseconds()),
- m_scantime(1),
- m_pixeltime(1),
- m_vblank_period(0),
- m_vblank_start_time(attotime::zero),
- m_vblank_end_time(attotime::zero),
- m_vblank_begin_timer(NULL),
- m_vblank_end_timer(NULL),
- m_scanline0_timer(NULL),
- m_scanline_timer(NULL),
- m_frame_number(0),
- m_partial_updates_this_frame(0)
+ m_type(SCREEN_TYPE_RASTER),
+ m_oldstyle_vblank_supplied(false),
+ m_refresh(0),
+ m_vblank(0),
+ m_xoffset(0.0f),
+ m_yoffset(0.0f),
+ m_xscale(1.0f),
+ m_yscale(1.0f),
+ m_container(NULL),
+ m_width(100),
+ m_height(100),
+ m_visarea(0, 99, 0, 99),
+ m_curbitmap(0),
+ m_curtexture(0),
+ m_changed(true),
+ m_last_partial_scan(0),
+ m_frame_period(DEFAULT_FRAME_PERIOD.as_attoseconds()),
+ m_scantime(1),
+ m_pixeltime(1),
+ m_vblank_period(0),
+ m_vblank_start_time(attotime::zero),
+ m_vblank_end_time(attotime::zero),
+ m_vblank_begin_timer(NULL),
+ m_vblank_end_timer(NULL),
+ m_scanline0_timer(NULL),
+ m_scanline_timer(NULL),
+ m_frame_number(0),
+ m_partial_updates_this_frame(0)
{
m_unique_id = m_id_counter;
m_id_counter++;
@@ -454,7 +454,7 @@ void screen_device::configure(int width, int height, const rectangle &visarea, a
m_pixeltime = frame_period / (height * width);
// if there has been no VBLANK time specified in the MACHINE_DRIVER, compute it now
- // from the visible area, otherwise just used the supplied value
+ // from the visible area, otherwise just used the supplied value
if (m_vblank == 0 && !m_oldstyle_vblank_supplied)
m_vblank_period = m_scantime * (height - visarea.height());
else
@@ -599,8 +599,8 @@ bool screen_device::update_partial(int scanline)
switch (curbitmap.format())
{
default:
- case BITMAP_FORMAT_IND16: flags = m_screen_update_ind16(*this, curbitmap.as_ind16(), clip); break;
- case BITMAP_FORMAT_RGB32: flags = m_screen_update_rgb32(*this, curbitmap.as_rgb32(), clip); break;
+ case BITMAP_FORMAT_IND16: flags = m_screen_update_ind16(*this, curbitmap.as_ind16(), clip); break;
+ case BITMAP_FORMAT_RGB32: flags = m_screen_update_rgb32(*this, curbitmap.as_rgb32(), clip); break;
}
m_partial_updates_this_frame++;
@@ -628,13 +628,13 @@ void screen_device::update_now()
int current_hpos = hpos();
// since we can currently update only at the scanline
- // level, we are trying to do the right thing by
- // updating including the current scanline, only if the
- // beam is past the halfway point horizontally.
- // If the beam is in the first half of the scanline,
- // we only update up to the previous scanline.
- // This minimizes the number of pixels that might be drawn
- // incorrectly until we support a pixel level granularity
+ // level, we are trying to do the right thing by
+ // updating including the current scanline, only if the
+ // beam is past the halfway point horizontally.
+ // If the beam is in the first half of the scanline,
+ // we only update up to the previous scanline.
+ // This minimizes the number of pixels that might be drawn
+ // incorrectly until we support a pixel level granularity
if (current_hpos < (m_width / 2) && current_vpos > 0)
current_vpos = current_vpos - 1;