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 b122be1293116b690cd8414d8e158aeb99910b4a (commit) via 29bbc4b0bc8ad223f711517031b9bace8425e920 (commit) from 160441a217c7e9ac2c935d865ceba129b46f5260 (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/b122be1293116b690cd8414d8e158aeb99910...
commit b122be1293116b690cd8414d8e158aeb99910b4a Author: Tomas Gavenciak gavento@ucw.cz Date: Fri Apr 20 17:54:48 2012 +0200
Added a simple helper to run python with GP libs
And also for GP executables
diff --git a/gp_run.sh b/gp_run.sh new file mode 100755 index 0000000..4c76693 --- /dev/null +++ b/gp_run.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Very simple script to run python, ipython and GP executables + +BDIR=. + +export LD_LIBRARY_PATH=$BDIR/build/ +export PYTHONPATH=$BDIR/pylib/ + +exec "$@"
http://repo.or.cz/w/gfxprim.git/commit/29bbc4b0bc8ad223f711517031b9bace8425e...
commit 29bbc4b0bc8ad223f711517031b9bace8425e920 Author: Tomas Gavenciak gavento@ucw.cz Date: Fri Apr 20 17:53:46 2012 +0200
Added an unsafe way to get buffer for Context pixels
AND I DO NOT LIKE IT AT ALL!
diff --git a/pylib/gfxprim/core/core.i b/pylib/gfxprim/core/core.i index 046481a..3668c2f 100644 --- a/pylib/gfxprim/core/core.i +++ b/pylib/gfxprim/core/core.i @@ -85,6 +85,10 @@ and self.thisown.") GP_Context; $self->w, $self->h, $self->bpp, $self->free_pixels); GP_ContextFree($self); } + PyObject *_hacky_hacky_pixels_buffer() { + GP_DEBUG(0, "Evil and dangerous _hacky_hacky_pixels_buffer() used!"); + return PyBuffer_FromMemory($self->pixels, $self->bytes_per_row * $self->h); + } };
/* Indicate new wrapper-owned GP_Context */
-----------------------------------------------------------------------
Summary of changes: gp_run.sh | 10 ++++++++++ pylib/gfxprim/core/core.i | 4 ++++ 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100755 gp_run.sh
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.