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 6c3a610f5c62bbcfbdabd7a538d97bc455fae1b4 (commit) via bcd7731a0e0dec5884309cf6b920f8df0b3a3ca3 (commit) from 14c24da39e8d293f98aae1e4ba72be6c4069417f (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/6c3a610f5c62bbcfbdabd7a538d97bc455fae...
commit 6c3a610f5c62bbcfbdabd7a538d97bc455fae1b4 Merge: bcd7731 14c24da Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Sat Dec 8 21:36:54 2012 +0100
Merge branch 'master' of ssh://repo.or.cz/srv/git/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/bcd7731a0e0dec5884309cf6b920f8df0b3a3...
commit bcd7731a0e0dec5884309cf6b920f8df0b3a3ca3 Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Sat Dec 8 21:36:34 2012 +0100
Added a special case for circle with r == 0.
diff --git a/libs/gfx/algo/FillCircle.algo.h b/libs/gfx/algo/FillCircle.algo.h index c6a48d0..b3eeb6b 100644 --- a/libs/gfx/algo/FillCircle.algo.h +++ b/libs/gfx/algo/FillCircle.algo.h @@ -45,6 +45,12 @@ void FN_NAME(CONTEXT_T context, int xcenter, int ycenter, unsigned int r, PIXVAL_T pixval) { + /* for r == 0, circle degenerates to a point */ + if (r == 0) { + HLINE(context, xcenter, xcenter, ycenter, pixval); + return; + } + int x, y, error; for (x = 0, error = -r, y = r; y >= 0; y--) { while (error < 0) { -----------------------------------------------------------------------
Summary of changes: libs/gfx/algo/FillCircle.algo.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 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.