mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fix cell scroll drawing
This commit is contained in:
parent
c041308933
commit
cf07a88d6e
6 changed files with 48 additions and 17 deletions
|
@ -261,7 +261,11 @@ static void DrawStripVSRam(struct TileStrip *ts, int plane_sh, int cellskip)
|
|||
// Draw tiles across screen:
|
||||
tilex=(-ts->hscroll)>>3;
|
||||
dx=((ts->hscroll-1)&7)+1;
|
||||
if(dx != 8) cell--; // have hscroll, start with negative cell
|
||||
if (ts->hscroll & 0x0f) {
|
||||
int adj = ((ts->hscroll ^ dx) >> 3) & 1;
|
||||
cell -= adj + 1;
|
||||
ts->cells -= adj;
|
||||
}
|
||||
cell+=cellskip;
|
||||
tilex+=cellskip;
|
||||
dx+=cellskip<<3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue