This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 183e450a847b698b96f2f7ecbd08ed785e58879f (commit) from b0791316458c7edc23a03dc8eb1d9bc346dc3b3a (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/183e450a847b698b96f2f7ecbd08ed785e588...
commit 183e450a847b698b96f2f7ecbd08ed785e58879f Author: Cyril Hrubis metan@ucw.cz Date: Thu Jan 5 02:17:25 2012 +0100
gfx: Anti Aliased rectangle, fixed one more special case.
diff --git a/libs/gfx/GP_RectAA.c b/libs/gfx/GP_RectAA.c index c68c377..69ddd8f 100644 --- a/libs/gfx/GP_RectAA.c +++ b/libs/gfx/GP_RectAA.c @@ -99,11 +99,12 @@ void GP_FillRectXYXY_AA_Raw(GP_Context *context, GP_Coord x0, GP_Coord y0, * Note that if out_x0 == in_x1 is 2px wide and both lines has less than * 100% intensity. The same goes for out_y0 == in_y1. */ - if (in_x1 >= in_x0 && out_x0 != in_x1 && in_y1 >= in_y0 && out_y0 != in_y1) + if (in_x1 >= in_x0 && (out_x0 != in_x1 || out_x1 != in_x0) + && in_y1 >= in_y0 && (out_y0 != in_y1 || out_y1 != in_y0)) GP_FillRectXYXY_Raw(context, in_x0, in_y0, in_x1, in_y1, pixel);
/* if the outer and innter coordinates doesn't match, draw blurred edge */ - if (in_y0 != out_y0 && out_x0 != in_x1) { + if (in_y0 != out_y0) { uint8_t mix = GP_GammaToLinear(GP_FP_FROM_INT(in_y0) + GP_FP_1_2 - y0); GP_Coord i; @@ -114,7 +115,7 @@ void GP_FillRectXYXY_AA_Raw(GP_Context *context, GP_Coord x0, GP_Coord y0, } } - if (in_y1 != out_y1 && out_x0 != in_x1) { + if (in_y1 != out_y1) { uint8_t mix = GP_GammaToLinear(y1 - GP_FP_FROM_INT(in_y0) - GP_FP_1_2); GP_Coord i; @@ -125,7 +126,7 @@ void GP_FillRectXYXY_AA_Raw(GP_Context *context, GP_Coord x0, GP_Coord y0, } }
- if (in_x0 != out_x0 && out_y0 != in_y1) { + if (in_x0 != out_x0) { uint8_t mix = GP_GammaToLinear(GP_FP_FROM_INT(in_x0) + GP_FP_1_2 - x0); GP_Coord i; @@ -136,7 +137,7 @@ void GP_FillRectXYXY_AA_Raw(GP_Context *context, GP_Coord x0, GP_Coord y0, } }
- if (in_x1 != out_x1 && out_y0 != in_y1) { + if (in_x1 != out_x1) { uint8_t mix = GP_GammaToLinear(x1 - GP_FP_FROM_INT(in_x1) - GP_FP_1_2); GP_Coord i;
-----------------------------------------------------------------------
Summary of changes: libs/gfx/GP_RectAA.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.