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, generate has been updated via b51b045c4d615a275513234d727bb99d90ecfa80 (commit) via e4cf0a42e6042ad9020da661c5beb10870c2dcfa (commit) from b24c82a3c5df97a39f72ec848917e4eb56f34d8c (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/b51b045c4d615a275513234d727bb99d90ecf...
commit b51b045c4d615a275513234d727bb99d90ecfa80 Merge: e4cf0a4 b24c82a Author: BlueBear jiri.bluebear.dluhos@gmail.com Date: Mon Oct 3 00:44:54 2011 +0200
Merge branch 'generate' of git://repo.or.cz/gfxprim into generate
http://repo.or.cz/w/gfxprim.git/commit/e4cf0a42e6042ad9020da661c5beb10870c2d...
commit e4cf0a42e6042ad9020da661c5beb10870c2dcfa Author: BlueBear jiri.bluebear.dluhos@gmail.com Date: Mon Oct 3 00:44:30 2011 +0200
Fixed (hopefully) more +/-1 errors in Ring.
diff --git a/libs/gfx/algo/FillRing.algo.h b/libs/gfx/algo/FillRing.algo.h index 96dfa79..9b3a002 100644 --- a/libs/gfx/algo/FillRing.algo.h +++ b/libs/gfx/algo/FillRing.algo.h @@ -54,17 +54,17 @@ void FN_NAME(CONTEXT_T context, int xcenter, int ycenter, } outer_error += -2*y + 1; - if (y <= (int) inner_r && y >= -((int) inner_r)) { + if (y < inner_r && y > -inner_r) { while (inner_error < 0) { inner_error += 2*inner_x + 1; inner_x++; } inner_error += -2*y + 1; - HLINE(context, xcenter - outer_x + 1, xcenter - inner_x + 1, ycenter - y, pixval); - HLINE(context, xcenter + inner_x - 1, xcenter + outer_x - 1, ycenter - y, pixval); - HLINE(context, xcenter - outer_x + 1, xcenter - inner_x + 1, ycenter + y, pixval); - HLINE(context, xcenter + inner_x - 1, xcenter + outer_x - 1, ycenter + y, pixval); + HLINE(context, xcenter - outer_x + 1, xcenter - inner_x, ycenter - y, pixval); + HLINE(context, xcenter + inner_x, xcenter + outer_x - 1, ycenter - y, pixval); + HLINE(context, xcenter - outer_x + 1, xcenter - inner_x, ycenter + y, pixval); + HLINE(context, xcenter + inner_x, xcenter + outer_x - 1, ycenter + y, pixval); } else { HLINE(context, xcenter - outer_x + 1, xcenter + outer_x - 1, ycenter-y, pixval); HLINE(context, xcenter - outer_x + 1, xcenter + outer_x - 1, ycenter+y, pixval); -----------------------------------------------------------------------
Summary of changes: libs/gfx/algo/FillRing.algo.h | 10 +++++----- 1 files changed, 5 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.