~ubuntu-branches/debian/experimental/mednafen/experimental

« back to all changes in this revision

Viewing changes to src/sms/render.cpp

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-01-31 07:21:35 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120131072135-es3dj12y00xcnrsk
Tags: 0.9.19-1
* New upstream WIP version.
* Update copyright information.
* Refresh use-system-tremor.patch and remove psx-big-endian-only.patch.
* Add spelling-fixes.patch based on Lintian's recommendations.
* Build-depend on debhelper 9 or later and remove corresponding Lintian
  override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
{
153
153
    int i;
154
154
 
155
 
    /* Clear display bitmap */
156
 
    memset(bitmap.data, 0, bitmap.pitch * bitmap.height);
157
 
 
158
155
    /* Clear palette */
159
156
    for(i = 0; i < PALETTE_SIZE; i++)
160
157
    {
250
247
    int hscroll = ((vdp.reg[0] & 0x40) && (line < 0x10)) ? 0 : (0x100 - vdp.reg[8]);
251
248
    int column = 0;
252
249
    uint16 attr;
253
 
    uint8 *nt = &vdp.vram[vdp.ntab + ((v_line >> 3) << 6)];
 
250
    uint8 *nt = &vdp.vram[vdp.ntab + (((v_line >> 3) << 6) & ((((vdp.reg[2] & 1) | vdp.quirk_disabled) << 10) | (~0U ^ (1 << 10)) ) )];
254
251
    int nt_scroll = (hscroll >> 3);
255
252
    int shift = (hscroll & 7);
256
253
    uint8 atex_mask;