[cairo] [PATCH] cairo-mono-scan-converter: Set correct initial error value when delta x is zero.

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 1 06:46:36 PST 2012

On Thu,  1 Mar 2012 22:10:10 +0800, zhigang.gong at linux.intel.com wrote:
> From: Zhigang Gong <zhigang.gong at linux.intel.com>
> Even if the delta x is zero, we still need to set a correct
> initial value of the rem to -0.5. Otherwise, latter when we
> do the row scanning, it will cause error as the rem is equal
> to zero and will increase the quo each time.

Good catch! Though all we need to perform is the intial edge advancement
bias to avoid this error conditon, similar to tor.

Thanks, tweaked and pushed.

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list