It can be fixed by putting:
yshift = ypos & ((8 << tilesize) - 1);
on line 728 in video/snes.c.