scroll size improvement

This commit is contained in:
notaz 2017-09-27 02:59:50 +03:00
parent b71cbbf705
commit eced019098
2 changed files with 8 additions and 3 deletions

View file

@ -394,8 +394,11 @@ static void DrawLayer(int plane_sh, int *hcache, int cellskip, int maxcells,
ts.xmask=(1<<shift[width])-1; // X Mask in tiles (0x1f-0x7f) ts.xmask=(1<<shift[width])-1; // X Mask in tiles (0x1f-0x7f)
ymask=(height<<8)|0xff; // Y Mask in pixels ymask=(height<<8)|0xff; // Y Mask in pixels
if(width == 1) ymask&=0x1ff; switch (width) {
else if(width>1) ymask =0x0ff; case 1: ymask &= 0x1ff; break;
case 2: ymask = 0x007; break;
case 3: ymask = 0x0ff; break;
}
// Find name table: // Find name table:
if (plane_sh&1) ts.nametab=(pvid->reg[4]&0x07)<<12; // B if (plane_sh&1) ts.nametab=(pvid->reg[4]&0x07)<<12; // B

View file

@ -303,7 +303,9 @@ DrawLayer:
cmp r10, #1 cmp r10, #1
biclt r1, r1, #0xfc00 biclt r1, r1, #0xfc00
biceq r1, r1, #0xfe00 biceq r1, r1, #0xfe00
bicgt r1, r1, #0xff00 @ r1=ymask=(height<<8)|0xff; ...; // Y Mask in pixels cmp r10, #2
moveq r1, #0x0007
movgt r1, #0x00ff @ r1=ymask=(height<<8)|0xff; ...; // Y Mask in pixels
add r10, r10, #5 add r10, r10, #5
cmp r10, #7 cmp r10, #7