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 16abe6513b0fa77891c43da149b891edea2a912b (commit) via f966f16f2202d808c1286a6e06b4d6c182741986 (commit) from 5da172bec1439fa9219e02da0f1e68383d56caad (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/16abe6513b0fa77891c43da149b891edea2a9...
commit 16abe6513b0fa77891c43da149b891edea2a912b Author: Cyril Hrubis metan@ucw.cz Date: Sun May 13 13:47:45 2012 +0200
doc: Fix typo.
diff --git a/doc/context.txt b/doc/context.txt index 294d026..00c6c08 100644 --- a/doc/context.txt +++ b/doc/context.txt @@ -203,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 function does no error distribution, it only multiplies or rounds the pixel values. If you need something better use Floyd Steinberg dithering instead.
http://repo.or.cz/w/gfxprim.git/commit/f966f16f2202d808c1286a6e06b4d6c182741...
commit f966f16f2202d808c1286a6e06b4d6c182741986 Author: Cyril Hrubis metan@ucw.cz Date: Sun May 13 13:47:13 2012 +0200
backends: GP_BackendInit() Add default size for X11.
diff --git a/libs/backends/GP_BackendInit.c b/libs/backends/GP_BackendInit.c index fb49b92..b00fd10 100644 --- a/libs/backends/GP_BackendInit.c +++ b/libs/backends/GP_BackendInit.c @@ -140,9 +140,13 @@ static void backend_x11_help(FILE *help, const char *err) static GP_Backend *backend_x11_init(char *params, const char *caption, FILE *help) { - unsigned int w, h, n; + unsigned int n, w = 640, h = 480;
- if (sscanf(params, "%u%*[xX]%u%n", &w, &h, &n) == 2 && n == strlen(params)) + if (params == NULL) + return GP_BackendX11Init(NULL, 0, 0, w, h, caption); + + if (sscanf(params, "%u%*[xX]%u%n", &w, &h, &n) == 2 && + n == strlen(params)) return GP_BackendX11Init(NULL, 0, 0, w, h, caption);
backend_x11_help(help, "X11: Invalid parameters");
-----------------------------------------------------------------------
Summary of changes: doc/context.txt | 2 +- libs/backends/GP_BackendInit.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 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.