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 bf70bc758e8d915a99250ce0422f05f414785e5d (commit) from e5db2b1f3508e1630b9af36a397a68ef069a56a2 (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/bf70bc758e8d915a99250ce0422f05f414785...
commit bf70bc758e8d915a99250ce0422f05f414785e5d Author: Cyril Hrubis metan@ucw.cz Date: Sun Jan 8 20:26:11 2012 +0100
gfx: Fix CircleSeg orientation.
diff --git a/libs/gfx/GP_CircleSeg.c b/libs/gfx/GP_CircleSeg.c index 56179c6..512699e 100644 --- a/libs/gfx/GP_CircleSeg.c +++ b/libs/gfx/GP_CircleSeg.c @@ -39,7 +39,7 @@ static uint8_t transform_segments(GP_Context *context, uint8_t seg_flags) uint8_t seg4 = seg_flags & GP_CIRCLE_SEG4;
if (context->axes_swap) - GP_SWAP(seg2, seg4); + GP_SWAP(seg1, seg3);
if (context->x_swap) { GP_SWAP(seg1, seg2); diff --git a/libs/gfx/algo/CircleSeg.algo.h b/libs/gfx/algo/CircleSeg.algo.h index 9812888..dc176a3 100644 --- a/libs/gfx/algo/CircleSeg.algo.h +++ b/libs/gfx/algo/CircleSeg.algo.h @@ -84,25 +84,25 @@ void FN_NAME(CONTEXT_T context, int xcenter, int ycenter, unsigned int r, while (error < 0) { error += 2*x + 1; x++; - if (seg_flags & GP_CIRCLE_SEG3) + if (seg_flags & GP_CIRCLE_SEG2) PUTPIXEL(context, xcenter-x+1, ycenter-y, pixval); - if (seg_flags & GP_CIRCLE_SEG4) + if (seg_flags & GP_CIRCLE_SEG1) PUTPIXEL(context, xcenter+x-1, ycenter-y, pixval); - if (seg_flags & GP_CIRCLE_SEG2) + if (seg_flags & GP_CIRCLE_SEG3) PUTPIXEL(context, xcenter-x+1, ycenter+y, pixval); - if (seg_flags & GP_CIRCLE_SEG1) + if (seg_flags & GP_CIRCLE_SEG4) PUTPIXEL(context, xcenter+x-1, ycenter+y, pixval); } /* Enough changes accumulated, go to next line. */ error += -2*y + 1; - if (seg_flags & GP_CIRCLE_SEG3) + if (seg_flags & GP_CIRCLE_SEG2) PUTPIXEL(context, xcenter-x+1, ycenter-y, pixval); - if (seg_flags & GP_CIRCLE_SEG4) + if (seg_flags & GP_CIRCLE_SEG1) PUTPIXEL(context, xcenter+x-1, ycenter-y, pixval) ; - if (seg_flags & GP_CIRCLE_SEG2) + if (seg_flags & GP_CIRCLE_SEG3) PUTPIXEL(context, xcenter-x+1, ycenter+y, pixval); - if (seg_flags & GP_CIRCLE_SEG1) + if (seg_flags & GP_CIRCLE_SEG4) PUTPIXEL(context, xcenter+x-1, ycenter+y, pixval); } }
-----------------------------------------------------------------------
Summary of changes: libs/gfx/GP_CircleSeg.c | 2 +- libs/gfx/algo/CircleSeg.algo.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 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.