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 bac5c04edb39e16dd0632b1d900daa77d350bdb1 (commit)
via 7cb9b250da3dd979a43169cd7fdb47c0dbcb1437 (commit)
from 5fe09088bb3606b059aab62e0decdb05e122e34f (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/bac5c04edb39e16dd0632b1d900daa77d350…
commit bac5c04edb39e16dd0632b1d900daa77d350bdb1
Merge: 7cb9b25 5fe0908
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Thu Feb 23 12:49:34 2012 +0100
Merge branch 'master' of ssh://repo.or.cz/srv/git/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/7cb9b250da3dd979a43169cd7fdb47c0dbcb…
commit 7cb9b250da3dd979a43169cd7fdb47c0dbcb1437
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Thu Feb 23 12:43:50 2012 +0100
Minor readout improvement
diff --git a/Makefile b/Makefile
index 142c98c..6337e40 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ clean:
ifdef VERBOSE
$(MAKE) -C build clean
else
- @echo "/build"
+ @echo "DIR /build"
@$(MAKE) --no-print-directory -C build clean
endif
@@ -32,7 +32,7 @@ ifdef VERBOSE
$(MAKE) clean
else
@$(MAKE) clean
- @rm config.h config.gen.mk
+ @rm config.h config.gen.mk
endif
HEADER_LOC=/usr/include/
-----------------------------------------------------------------------
Summary of changes:
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 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 548b430abfdc45d7fdae3c88fc998c9431179f54 (commit)
from 017a24fe557af8dfd0f3b98796ef439db5246a84 (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/548b430abfdc45d7fdae3c88fc998c943117…
commit 548b430abfdc45d7fdae3c88fc998c9431179f54
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Feb 19 21:36:52 2012 +0100
backends: Fix the backend Flip().
After the transformation, make sure
that x0 <= x1 and y0 <= y1.
diff --git a/include/backends/GP_Backend.h b/include/backends/GP_Backend.h
index 25d6b7e..c83a411 100644
--- a/include/backends/GP_Backend.h
+++ b/include/backends/GP_Backend.h
@@ -42,7 +42,6 @@
#ifndef BACKENDS_GP_BACKEND_H
#define BACKENDS_GP_BACKEND_H
-#include "core/GP_Transform.h"
#include "core/GP_Context.h"
struct GP_Backend;
@@ -127,15 +126,9 @@ static inline void GP_BackendFlip(GP_Backend *backend)
/*
* Calls backend->UpdateRect().
*/
-static inline void GP_BackendUpdateRect(GP_Backend *backend,
- GP_Coord x0, GP_Coord y0,
- GP_Coord x1, GP_Coord y1)
-{
- GP_TRANSFORM_POINT(backend->context, x0, y0);
- GP_TRANSFORM_POINT(backend->context, x1, y1);
-
- backend->UpdateRect(backend, x0, y0, x1, y1);
-}
+void GP_BackendUpdateRect(GP_Backend *backend,
+ GP_Coord x0, GP_Coord y0,
+ GP_Coord x1, GP_Coord y1);
/*
* Calls backend->Exit().
diff --git a/libs/backends/GP_Backend.c b/libs/backends/GP_Backend.c
new file mode 100644
index 0000000..d878760
--- /dev/null
+++ b/libs/backends/GP_Backend.c
@@ -0,0 +1,42 @@
+/*****************************************************************************
+ * This file is part of gfxprim library. *
+ * *
+ * Gfxprim is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU Lesser General Public *
+ * License as published by the Free Software Foundation; either *
+ * version 2.1 of the License, or (at your option) any later version. *
+ * *
+ * Gfxprim is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with gfxprim; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
+ * Boston, MA 02110-1301 USA *
+ * *
+ * Copyright (C) 2009-2012 Cyril Hrubis <metan(a)ucw.cz> *
+ * *
+ *****************************************************************************/
+
+#include "core/GP_Common.h"
+#include "core/GP_Transform.h"
+
+#include "backends/GP_Backend.h"
+
+void GP_BackendUpdateRect(GP_Backend *backend,
+ GP_Coord x0, GP_Coord y0,
+ GP_Coord x1, GP_Coord y1)
+{
+ GP_TRANSFORM_POINT(backend->context, x0, y0);
+ GP_TRANSFORM_POINT(backend->context, x1, y1);
+
+ if (x1 < x0)
+ GP_SWAP(x0, x1);
+
+ if (y1 < y0)
+ GP_SWAP(y0, y1);
+
+ backend->UpdateRect(backend, x0, y0, x1, y1);
+}
-----------------------------------------------------------------------
Summary of changes:
include/backends/GP_Backend.h | 13 +-----
.../GP_Backends.h => libs/backends/GP_Backend.c | 40 ++++++++-----------
2 files changed, 20 insertions(+), 33 deletions(-)
copy include/backends/GP_Backends.h => libs/backends/GP_Backend.c (80%)
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 6d6139b6ed2cf86b481229d1e5234aecb186b81a (commit)
via 017a24fe557af8dfd0f3b98796ef439db5246a84 (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 (6d6139b6ed2cf86b481229d1e5234aecb186b81a)
N -- N -- N (017a24fe557af8dfd0f3b98796ef439db5246a84)
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/017a24fe557af8dfd0f3b98796ef439db524…
commit 017a24fe557af8dfd0f3b98796ef439db5246a84
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Feb 19 20:45:11 2012 +0100
backends: SDL Fix Flip operation.
The SDL Flip takes x, y, w, h and not x, y, x, y.
diff --git a/include/backends/GP_Backend.h b/include/backends/GP_Backend.h
index 4ddda59..25d6b7e 100644
--- a/include/backends/GP_Backend.h
+++ b/include/backends/GP_Backend.h
@@ -86,8 +86,8 @@ typedef struct GP_Backend {
* If display is not buffered, this is no-op.
*/
void (*UpdateRect)(struct GP_Backend *self,
- GP_Coord x1, GP_Coord y1,
- GP_Coord x2, GP_Coord y2);
+ GP_Coord x0, GP_Coord y0,
+ GP_Coord x1, GP_Coord y1);
/*
* Exits the backend.
@@ -133,6 +133,7 @@ static inline void GP_BackendUpdateRect(GP_Backend *backend,
{
GP_TRANSFORM_POINT(backend->context, x0, y0);
GP_TRANSFORM_POINT(backend->context, x1, y1);
+
backend->UpdateRect(backend, x0, y0, x1, y1);
}
diff --git a/libs/backends/GP_SDL.c b/libs/backends/GP_SDL.c
index b88b3b5..809d4b6 100644
--- a/libs/backends/GP_SDL.c
+++ b/libs/backends/GP_SDL.c
@@ -52,11 +52,17 @@ static void sdl_flip(struct GP_Backend *self __attribute__((unused)))
}
static void sdl_update_rect(struct GP_Backend *self __attribute__((unused)),
- GP_Coord x1, GP_Coord y1, GP_Coord x2, GP_Coord y2)
+ GP_Coord x0, GP_Coord y0, GP_Coord x1, GP_Coord y1)
{
SDL_mutexP(mutex);
-
- SDL_UpdateRect(sdl_surface, x1, y1, x2, y2);
+
+ /*
+ * SDL_UpdateRect() with all x0, y0, x1 and y1 zero updates whole
+ * screen we avoid such behavior as it will break other backends.
+ */
+ if (x1 != 0 && y1 != 0)
+ SDL_UpdateRect(sdl_surface, x0, y0,
+ GP_ABS(x1 - x0) + 1, GP_ABS(y1 - y0) + 1);
SDL_mutexV(mutex);
}
-----------------------------------------------------------------------
Summary of changes:
libs/backends/GP_SDL.c | 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 6d6139b6ed2cf86b481229d1e5234aecb186b81a (commit)
from 0a5fbacf4887f8cf496cf45c9fa7121f091f1153 (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/6d6139b6ed2cf86b481229d1e5234aecb186…
commit 6d6139b6ed2cf86b481229d1e5234aecb186b81a
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Feb 19 20:45:11 2012 +0100
backends: SDL Fix Flip operation.
The SDL Flip takes x, y, w, h and not x, y, x, y.
diff --git a/include/backends/GP_Backend.h b/include/backends/GP_Backend.h
index 4ddda59..25d6b7e 100644
--- a/include/backends/GP_Backend.h
+++ b/include/backends/GP_Backend.h
@@ -86,8 +86,8 @@ typedef struct GP_Backend {
* If display is not buffered, this is no-op.
*/
void (*UpdateRect)(struct GP_Backend *self,
- GP_Coord x1, GP_Coord y1,
- GP_Coord x2, GP_Coord y2);
+ GP_Coord x0, GP_Coord y0,
+ GP_Coord x1, GP_Coord y1);
/*
* Exits the backend.
@@ -133,6 +133,7 @@ static inline void GP_BackendUpdateRect(GP_Backend *backend,
{
GP_TRANSFORM_POINT(backend->context, x0, y0);
GP_TRANSFORM_POINT(backend->context, x1, y1);
+
backend->UpdateRect(backend, x0, y0, x1, y1);
}
diff --git a/libs/backends/GP_SDL.c b/libs/backends/GP_SDL.c
index b88b3b5..4a327c5 100644
--- a/libs/backends/GP_SDL.c
+++ b/libs/backends/GP_SDL.c
@@ -52,11 +52,17 @@ static void sdl_flip(struct GP_Backend *self __attribute__((unused)))
}
static void sdl_update_rect(struct GP_Backend *self __attribute__((unused)),
- GP_Coord x1, GP_Coord y1, GP_Coord x2, GP_Coord y2)
+ GP_Coord x0, GP_Coord y0, GP_Coord x1, GP_Coord y1)
{
SDL_mutexP(mutex);
-
- SDL_UpdateRect(sdl_surface, x1, y1, x2, y2);
+
+ /*
+ * SDL_UpdateRect() with all x0, y0, x1 and y1 zero updates whole
+ * screen we avoid such behavior as it will break other backends.
+ */
+ if (x1 != 0 && y1 != 0)
+ SDL_UpdateRect(sdl_surface, x0, y0,
+ GP_ABS(x1 - x0), GP_ABS(y1 - x0));
SDL_mutexV(mutex);
}
-----------------------------------------------------------------------
Summary of changes:
include/backends/GP_Backend.h | 5 +++--
libs/backends/GP_SDL.c | 12 +++++++++---
2 files changed, 12 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
via 0a5fbacf4887f8cf496cf45c9fa7121f091f1153 (commit)
from 40ef6e9a083f24ff72acc2a52e0902cb35d5a768 (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/0a5fbacf4887f8cf496cf45c9fa7121f091f…
commit 0a5fbacf4887f8cf496cf45c9fa7121f091f1153
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun Feb 19 19:58:06 2012 +0100
backends: Fix backend Flip to respect context rotation.
diff --git a/include/backends/GP_Backend.h b/include/backends/GP_Backend.h
index a50065a..4ddda59 100644
--- a/include/backends/GP_Backend.h
+++ b/include/backends/GP_Backend.h
@@ -42,6 +42,7 @@
#ifndef BACKENDS_GP_BACKEND_H
#define BACKENDS_GP_BACKEND_H
+#include "core/GP_Transform.h"
#include "core/GP_Context.h"
struct GP_Backend;
@@ -127,10 +128,12 @@ static inline void GP_BackendFlip(GP_Backend *backend)
* Calls backend->UpdateRect().
*/
static inline void GP_BackendUpdateRect(GP_Backend *backend,
- GP_Coord x1, GP_Coord y1,
- GP_Coord x2, GP_Coord y2)
+ GP_Coord x0, GP_Coord y0,
+ GP_Coord x1, GP_Coord y1)
{
- backend->UpdateRect(backend, x1, y1, x2, y2);
+ GP_TRANSFORM_POINT(backend->context, x0, y0);
+ GP_TRANSFORM_POINT(backend->context, x1, y1);
+ backend->UpdateRect(backend, x0, y0, x1, y1);
}
/*
-----------------------------------------------------------------------
Summary of changes:
include/backends/GP_Backend.h | 9 ++++++---
1 files changed, 6 insertions(+), 3 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.")