public function drawPartCopy($tileIndex, $x, $y, $sourceLine, $attribs)
{
$image = $this->tileData[$tileIndex + $this->tileCount * $attribs] ? $this->tileData[$tileIndex + $this->tileCount * $attribs] : $this->updateImage($tileIndex, $attribs);
$dst = $x + $y * 160;
$src = $sourceLine * 8;
$dstEnd = $x > 152 ? ($y + 1) * 160 : $dst + 8;
// adjust left
if ($x < 0) {
$dst -= $x;
$src -= $x;
}
while ($dst < $dstEnd) {
$this->frameBuffer[$dst++] = $image[$src++];
}
}