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 757febd5664bc013d3568d5faec50e4f8de74de8 (commit)
via 55a42a3b2e7dedc7c26c2db9a5333904a601f13c (commit)
from f4a9af195d3e128c3752825a1b568d32f9c1bfc8 (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/757febd5664bc013d3568d5faec50e4f8de7…
commit 757febd5664bc013d3568d5faec50e4f8de74de8
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sat Nov 23 11:06:01 2013 +0100
spiv: Fix help for arrow keys.
It's 10px by default and 1px with shift not the other way around.
Reported-by: Milan Vancura <milan(a)ucw.cz>
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/demos/spiv/spiv_help.c b/demos/spiv/spiv_help.c
index b3d25da..72be0bc 100644
--- a/demos/spiv/spiv_help.c
+++ b/demos/spiv/spiv_help.c
@@ -64,10 +64,10 @@ static struct key_help help_keys[] = {
{"Shift 2", "Resize twice of the image size"},
{"Shift 3", "Resize three times of the image size"},
{"...", ""},
- {"Up", "Move image by 1px up (by 10 with Shift)"},
- {"Down", "Move image by 1px down (by 10 with Shift)"},
- {"Left", "Move image by 1px left (by 10 with Shift)"},
- {"Right", "Move image by 1px right (by 10 with Shift)"},
+ {"Up", "Move image by 10px up (by 1 with Shift)"},
+ {"Down", "Move image by 10px down (by 1 with Shift)"},
+ {"Left", "Move image by 10px left (by 1 with Shift)"},
+ {"Right", "Move image by 10px right (by 1 with Shift)"},
{"", ""},
{"]", "Change to next resampling method"},
{"[", "Change to prev resampling method"},
http://repo.or.cz/w/gfxprim.git/commit/55a42a3b2e7dedc7c26c2db9a5333904a601…
commit 55a42a3b2e7dedc7c26c2db9a5333904a601f13c
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Mon Nov 18 20:19:47 2013 +0100
spiv: Fix action index in image_action_run().
Action parameters are indexed from one not zero.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/demos/spiv/spiv.c b/demos/spiv/spiv.c
index 428e5ea..74a45a4 100644
--- a/demos/spiv/spiv.c
+++ b/demos/spiv/spiv.c
@@ -1016,7 +1016,7 @@ int main(int argc, char *argv[])
zoom_mul(¶ms, 1/1.5);
break;
case GP_KEY_F1 ... GP_KEY_F10:
- image_action_run(ev.val.key.key - GP_KEY_F1,
+ image_action_run(ev.val.key.key - GP_KEY_F1 + 1,
image_loader_img_path());
break;
}
-----------------------------------------------------------------------
Summary of changes:
demos/spiv/spiv.c | 2 +-
demos/spiv/spiv_help.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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
discards d5a0602976ef29ab84cac9df07eebf0818eb894e (commit)
via a38bd31917407a2fd2b4054c51f6421c2d79654f (commit)
This update added new revisions after undoing existing revisions. That is
to say, the old revision is not a strict subset of the new revision. This
situation occurs when you --force push a change and generate a repository
containing something like this:
* -- * -- B -- O -- O -- O (d5a0602976ef29ab84cac9df07eebf0818eb894e)
N -- N -- N (a38bd31917407a2fd2b4054c51f6421c2d79654f)
When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.
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/a38bd31917407a2fd2b4054c51f6421c2d79…
commit a38bd31917407a2fd2b4054c51f6421c2d79654f
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Fri Nov 15 19:41:54 2013 +0100
tests: framework: Makefile: Fix LDLIBS.
The -ldl must be after the object files.
(fixes tests on Ubuntu)
Fix the output to match the rest of nonverbose build.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/tests/framework/Makefile b/tests/framework/Makefile
index 15cd84a..5b13c0f 100644
--- a/tests/framework/Makefile
+++ b/tests/framework/Makefile
@@ -5,8 +5,7 @@ CSOURCES=$(shell echo *.c)
INCLUDE=
LDFLAGS+=-L.
-LDLIBS+=-ltst_preload -lm -ldl -ltst -lrt
-CFLAGS+=
+LDLIBS=-ltst_preload -lm -ldl -ltst -lrt
test: libtst.a
@@ -15,10 +14,20 @@ APPS=test
ALL+=libtst_preload.so libtst.a
libtst_preload.so: tst_preload.o tst_malloc_canaries.o tst_preload_FILE.o
- $(CC) -Wl,-soname -Wl,tst_preload.so --shared -ldl -fPIC $^ -o $@
+ifndef VERBOSE
+ @echo "LD libtst_preload.so"
+ @$(CC) -Wl,-soname -Wl,tst_preload.so --shared -fPIC $^ -ldl -o $@
+else
+ $(CC) -Wl,-soname -Wl,tst_preload.so --shared -fPIC $^ -ldl -o $@
+endif
libtst.a: tst_suite.o tst_job.o tst_msg.o tst_log.o tst_main.o tst_timespec.o
+ifndef VERBOSE
+ @echo "AR libtst.a"
+ @$(AR) rcs $@ $^
+else
$(AR) rcs $@ $^
+endif
CLEAN+=libtst_preload.so libtst.a log.json
-----------------------------------------------------------------------
Summary of changes:
tests/framework/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 d5a0602976ef29ab84cac9df07eebf0818eb894e (commit)
from d54f2201630102b15e262536d2b99330962102a8 (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/d5a0602976ef29ab84cac9df07eebf0818eb…
commit d5a0602976ef29ab84cac9df07eebf0818eb894e
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Fri Nov 15 19:41:54 2013 +0100
tests: framework: Makefile: Fix LDLIBS.
The -ldl must be after the object files.
(fixes tests on Ubuntu)
Fix the output to match the rest of nonverbose build.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/tests/framework/Makefile b/tests/framework/Makefile
index 15cd84a..a5da130 100644
--- a/tests/framework/Makefile
+++ b/tests/framework/Makefile
@@ -4,9 +4,8 @@ include $(TOPDIR)/pre.mk
CSOURCES=$(shell echo *.c)
INCLUDE=
-LDFLAGS+=-L.
-LDLIBS+=-ltst_preload -lm -ldl -ltst -lrt
-CFLAGS+=
+LDFLAGS=-L.
+LDLIBS=-ltst_preload -lm -ldl -ltst -lrt
test: libtst.a
@@ -15,10 +14,20 @@ APPS=test
ALL+=libtst_preload.so libtst.a
libtst_preload.so: tst_preload.o tst_malloc_canaries.o tst_preload_FILE.o
- $(CC) -Wl,-soname -Wl,tst_preload.so --shared -ldl -fPIC $^ -o $@
+ifndef VERBOSE
+ @echo "LD libtst_preload.so"
+ @$(CC) -Wl,-soname -Wl,tst_preload.so --shared -fPIC $^ -ldl -o $@
+else
+ $(CC) -Wl,-soname -Wl,tst_preload.so --shared -fPIC $^ -ldl -o $@
+endif
libtst.a: tst_suite.o tst_job.o tst_msg.o tst_log.o tst_main.o tst_timespec.o
+ifndef VERBOSE
+ @echo "AR libtst.a"
+ @$(AR) rcs $@ $^
+else
$(AR) rcs $@ $^
+endif
CLEAN+=libtst_preload.so libtst.a log.json
-----------------------------------------------------------------------
Summary of changes:
tests/framework/Makefile | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
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 88eea356e8494dea8645470506f2087b104d4326 (commit)
via 6bc4c8d0ca2ac207dc2a0e2feb9fd482aeff1343 (commit)
from 117f44cf3323cab17798651ccdedc9018e5a95fc (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/88eea356e8494dea8645470506f2087b104d…
commit 88eea356e8494dea8645470506f2087b104d4326
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Tue Nov 12 23:43:45 2013 +0100
backends: X11: Flush connection when window was closed.
If one of the windows was closed the connection needs
to be flushed so that it's removed from the screen immediately.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/libs/backends/GP_X11_Win.h b/libs/backends/GP_X11_Win.h
index ad0bbf5..1a81fc5 100644
--- a/libs/backends/GP_X11_Win.h
+++ b/libs/backends/GP_X11_Win.h
@@ -90,6 +90,11 @@ static struct x11_win *win_list_lookup(Window win)
return NULL;
}
+static int win_list_empty(void)
+{
+ return win_list == NULL;
+}
+
/* Send NETWM message, most modern Window Managers should understand */
static void x11_win_fullscreen(struct x11_win *win, int mode)
{
@@ -379,6 +384,9 @@ static void x11_win_close(struct x11_win *win)
XDestroyWindow(win->dpy, win->win);
+ if (!win_list_empty())
+ XFlush(win->dpy);
+
XUnlockDisplay(win->dpy);
/* Close connection/Decrease ref count */
http://repo.or.cz/w/gfxprim.git/commit/6bc4c8d0ca2ac207dc2a0e2feb9fd482aeff…
commit 6bc4c8d0ca2ac207dc2a0e2feb9fd482aeff1343
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Tue Nov 12 23:41:40 2013 +0100
backends: X11: Avoid dereferencing closed window
If X11 backend has two windows opened and one of them
was closed the pointer to last window in event parser may
became invalid. Now it's cleared when window is closed.
Signed-off-by: Cyril Hrubis <metan(a)ucw.cz>
diff --git a/libs/backends/GP_X11.c b/libs/backends/GP_X11.c
index 5b64b49..ffa0b9c 100644
--- a/libs/backends/GP_X11.c
+++ b/libs/backends/GP_X11.c
@@ -105,20 +105,24 @@ static void x11_flip(GP_Backend *self)
XUnlockDisplay(win->dpy);
}
+static struct x11_win *last_win = NULL;
+
static void x11_ev(XEvent *ev)
{
- static struct x11_win *win = NULL;
+ struct x11_win *win;
/* Lookup for window */
- if (win == NULL || win->win != ev->xany.window) {
- win = win_list_lookup(ev->xany.window);
+ if (last_win == NULL || last_win->win != ev->xany.window) {
+ last_win = win_list_lookup(ev->xany.window);
- if (win == NULL) {
+ if (last_win == NULL) {
GP_WARN("Event for unknown window, ignoring.");
return;
}
}
+ win = last_win;
+
struct GP_Backend *self = GP_CONTAINER_OF(win, struct GP_Backend, priv);
switch (ev->type) {
@@ -546,6 +550,13 @@ static void window_close(GP_Backend *self)
static void x11_exit(GP_Backend *self)
{
+ struct x11_win *win = GP_BACKEND_PRIV(self);
+
+ GP_DEBUG(1, "Closing window %p", win);
+
+ if (win == last_win)
+ last_win = NULL;
+
window_close(self);
free(self);
diff --git a/libs/backends/GP_X11_Win.h b/libs/backends/GP_X11_Win.h
index b728bcf..ad0bbf5 100644
--- a/libs/backends/GP_X11_Win.h
+++ b/libs/backends/GP_X11_Win.h
@@ -363,6 +363,8 @@ static int x11_win_open(struct x11_wreq *wreq)
static void x11_win_close(struct x11_win *win)
{
+ GP_DEBUG(1, "Closing window");
+
XLockDisplay(win->dpy);
win_list_rem(win);
-----------------------------------------------------------------------
Summary of changes:
libs/backends/GP_X11.c | 19 +++++++++++++++----
libs/backends/GP_X11_Win.h | 10 ++++++++++
2 files changed, 25 insertions(+), 4 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")