Previous 15994 Revisions Next

r15049 Saturday 28th April, 2012 at 08:30:45 UTC by Barry Rodewald
x68k: Fixed sprite H-DISP in relation to tilemaps. Corrects score and text display in Terra Cresta. (no whatsnew)
[src/mess/video]x68k.c

src/mess/video/x68k.c
r15048r15049
731731   switch(offset)
732732   {
733733   case 0x400:
734      state->m_bg0_8->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff);
735      state->m_bg0_16->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff);
734      state->m_bg0_8->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
735      state->m_bg0_16->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
736736      break;
737737   case 0x401:
738738      state->m_bg0_8->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff);
739739      state->m_bg0_16->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff);
740740      break;
741741   case 0x402:
742      state->m_bg1_8->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff);
743      state->m_bg1_16->set_scrollx(0,(data - state->m_crtc.hbegin + state->m_crtc.bg_hshift) & 0x3ff);
742      state->m_bg1_8->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
743      state->m_bg1_16->set_scrollx(0,(data - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
744744      break;
745745   case 0x403:
746746      state->m_bg1_8->set_scrolly(0,(data - state->m_crtc.vbegin) & 0x3ff);
r15048r15049
12241224         {
12251225            if((state->m_spritereg[0x404] & 0x0030) == 0x10)  // BG1 TXSEL
12261226            {
1227               x68k_bg0->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin) & 0x3ff);
1227               x68k_bg0->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
12281228               x68k_bg0->set_scrolly(0,(state->m_spritereg[0x403] - state->m_crtc.vbegin) & 0x3ff);
12291229               x68k_bg0->draw(bitmap,rect,0,0);
12301230            }
12311231            else
12321232            {
1233               x68k_bg1->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin) & 0x3ff);
1233               x68k_bg1->set_scrollx(0,(state->m_spritereg[0x402] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
12341234               x68k_bg1->set_scrolly(0,(state->m_spritereg[0x403] - state->m_crtc.vbegin) & 0x3ff);
12351235               x68k_bg1->draw(bitmap,rect,0,0);
12361236            }
r15048r15049
12401240         {
12411241            if((state->m_spritereg[0x404] & 0x0006) == 0x02)  // BG0 TXSEL
12421242            {
1243               x68k_bg0->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin) & 0x3ff);
1243               x68k_bg0->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
12441244               x68k_bg0->set_scrolly(0,(state->m_spritereg[0x401] - state->m_crtc.vbegin) & 0x3ff);
12451245               x68k_bg0->draw(bitmap,rect,0,0);
12461246            }
12471247            else
12481248            {
1249               x68k_bg1->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin) & 0x3ff);
1249               x68k_bg1->set_scrollx(0,(state->m_spritereg[0x400] - state->m_crtc.hbegin - state->m_crtc.bg_hshift) & 0x3ff);
12501250               x68k_bg1->set_scrolly(0,(state->m_spritereg[0x401] - state->m_crtc.vbegin) & 0x3ff);
12511251               x68k_bg1->draw(bitmap,rect,0,0);
12521252            }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team