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 d5b0a7ec7f7f9a3552742911a9d7528d5adf86c5 (commit) from 0b9e5475cc8db3e7b8c5555744c7b29ca3dbbed3 (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/d5b0a7ec7f7f9a3552742911a9d7528d5adf8...
commit d5b0a7ec7f7f9a3552742911a9d7528d5adf86c5 Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Mon May 7 15:21:56 2012 +0200
A few more wording clarifications and typo fixes.
diff --git a/doc/context.txt b/doc/context.txt index 1edcc1f..294d026 100644 --- a/doc/context.txt +++ b/doc/context.txt @@ -33,7 +33,9 @@ typedef struct GP_Context { -------------------------------------------------------------------------------
The 'pixels' field points to the image data, stored as a one-dimensional -array of byte-aligned lines. +array of byte-aligned lines. (There can be some unused space at the end of +each line; this is reflected by the 'bytes_per_row' value being greater +than what would be needed for that pixel format).
Rotation ^^^^^^^^ @@ -47,7 +49,7 @@ If you don't need this functionality just don't touch the flags the as overhead of these transformations is not measurable.
If you really need drawing primitives that do not use the orientation flags, -you could use variants with _Raw suffix (altghoug this is not recommended). +you could use variants with _Raw suffix (although this is not recommended).
There are various helper macros for transforming coordinates and sizes in 'core/GP_Transform.h'. And context helper functions to "rotate" the flags @@ -87,7 +89,7 @@ void GP_ContextFlagsRotateCW(GP_Context *context); void GP_ContextFlagsRotateCCW(GP_Context *context);
/* - * Returns context W and H taking the rotation flags into the account. + * Returns context width and height taking the rotation flags into the account. */ GP_Size GP_ContextW(const GP_Context *context); GP_Size GP_ContextH(const GP_Context *context); @@ -153,7 +155,7 @@ undefined contents. void GP_ContextFree(GP_Context *context); -------------------------------------------------------------------------------
-Frees the context memory. If free_pixels flag is set, the pixels buffer is +Frees the context memory. If 'free_pixels' flag is set, the pixels buffer is freed too.
Subcontext @@ -163,7 +165,7 @@ A subcontext is a context that refers to a rectangular area within another context. Subcontexts can be used as any other context (including creating another subcontexts).
-Calling GP_ContextFree() on a subcontext is safe; the bitmap is not freed as +Calling 'GP_ContextFree()' on a subcontext is safe; the bitmap is not freed as it belongs to another context; it will be freed with the hosting context.
[source,c] @@ -201,6 +203,6 @@ GP_Context *GP_ContextConvert(const GP_Context *src, GP_Context *dst, Provides basic context conversion functionality. A newly allocated context is returned.
-This fuction does no error distribution it only multiplies or rounds the pixel +This fuction does no error distribution, it only multiplies or rounds the pixel values. If you need something better use Floyd Steinberg dithering instead.
diff --git a/doc/drawing_api.txt b/doc/drawing_api.txt index f83bad0..d836680 100644 --- a/doc/drawing_api.txt +++ b/doc/drawing_api.txt @@ -94,7 +94,7 @@ void GP_FillCircle(GP_Context *context, GP_Coord xcenter, GP_Coord ycenter, Draws a filled circle.
The set of pixels affected by 'GP_FillCircle()' is exactly the same as if -drawing the circle boundary using GP_Circle() and then filling all pixels +drawing the circle boundary using 'GP_Circle()' and then filling all pixels within the boundary with the same color.
Rings
-----------------------------------------------------------------------
Summary of changes: doc/context.txt | 14 ++++++++------ doc/drawing_api.txt | 2 +- 2 files changed, 9 insertions(+), 7 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.