Previous 15994 Revisions Next

r13962 Tuesday 10th January, 2012 at 12:00:24 UTC by Nathan Woods
Fixing bug #2107
[src/mess/video]gime.c

src/mess/video/gime.c
r13961r13962
16921692ATTR_FORCE_INLINE void gime_base_device::render_scanline(const scanline_record *scanline, pixel_t *pixels, int min_x, int max_x, palette_resolver *resolver)
16931693{
16941694   int left_border, right_border;
1695   int x, x2;
1695   int x, x2, pixel_position;
16961696   pixel_t border_color = resolver->lookup(scanline->m_border);
16971697   const pixel_t *resolved_palette = NULL;
16981698 
r13961r13962
17281728 
17291729   /* body */
17301730   x = 0;
1731   pixel_position = 0;
17311732   while(x < sample_count)
17321733   {
17331734      /* determine how many bytes exist for which the mode is identical */
r13961r13962
17381739      resolved_palette = resolver->get_palette(scanline->m_palette[x]);
17391740 
17401741      /* emit the samples, with a (hopefully) aggressively inlined function */
1741      pixels += ((*this).*(emit_samples))(scanline, x, x2 - x, pixels, resolved_palette);
1742      pixel_position += ((*this).*(emit_samples))(scanline, x, x2 - x, &pixels[pixel_position], resolved_palette);
17421743 
17431744      /* update x */
17441745      x = x2;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team