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 23a690342a49f0f96aad7ce26eb0d7290349d4f3 (commit) from f80c7c799ea3cc54e9858863dc4a0e8461c6aeb8 (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/23a690342a49f0f96aad7ce26eb0d7290349d...
commit 23a690342a49f0f96aad7ce26eb0d7290349d4f3 Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Mon Dec 17 23:53:04 2012 +0100
Use clipped putpixel in line drawing for now (slower but does not crash).
diff --git a/libs/gfx/GP_Line.gen.c.t b/libs/gfx/GP_Line.gen.c.t index 42b9167..edc5382 100644 --- a/libs/gfx/GP_Line.gen.c.t +++ b/libs/gfx/GP_Line.gen.c.t @@ -51,8 +51,8 @@ void GP_Line_Raw_{{ ps.suffix }}(GP_Context *context, int x0, int y0, /* special cases: vertical line, horizontal line, single point */ if (x0 == x1) { if (y0 == y1) { - GP_PutPixel_Raw_{{ ps.suffix }}(context, x0, y0, - pixval); + GP_PutPixel_Raw_Clipped_{{ ps.suffix }}(context, + x0, y0, pixval); return; } GP_VLine_Raw(context, x0, y0, y1, pixval); @@ -93,9 +93,11 @@ void GP_Line_Raw_{{ ps.suffix }}(GP_Context *context, int x0, int y0, for (x = x0; x <= x1; x++) {
if (steep) - GP_PutPixel_Raw_{{ ps.suffix }}(context, y, x, pixval); + GP_PutPixel_Raw_Clipped_{{ ps.suffix }}(context, y, x, + pixval); else - GP_PutPixel_Raw_{{ ps.suffix }}(context, x, y, pixval); + GP_PutPixel_Raw_Clipped_{{ ps.suffix }}(context, x, y, + pixval);
error -= deltay; if (error < 0) {
-----------------------------------------------------------------------
Summary of changes: libs/gfx/GP_Line.gen.c.t | 10 ++++++---- 1 files changed, 6 insertions(+), 4 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.