On Sat, 2007-03-03 at 08:15 +0200, Uoti Urpala wrote: > shift.x = (pen.x + 32) & 63; > shift.y = (pen.y + 32) & 63; > seems to fix it. Though I suppose either shift.x = ((pen.x + 32) & 63)-32 or changing the pos.x assignment back to truncation would be more correct...