Fixed linestride calculations