summaryrefslogtreecommitdiff
path: root/packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
diff options
context:
space:
mode:
authorThomas Kunze <thommycheck@gmx.de>2008-03-02 19:55:55 +0000
committerThomas Kunze <thommycheck@gmx.de>2008-03-02 19:55:55 +0000
commit0e96be7f834f3264594c8e21b3fe5ee69c296486 (patch)
tree0430eb0baac708cbd7dbfbf24f00fcb64219d29b /packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
parent2a98e2a2c1b55a0eb0ac09f2f9b55db2e4c23553 (diff)
parentbd607171760c733930b955f591e156717651fc1f (diff)
merge of '16882b53b725e8d7bfbf2d2909cfbf1f3a8a90fc'
and '55956ba3628054539f1f1f6c44ab7108d48f8b32'
Diffstat (limited to 'packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch')
-rw-r--r--packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch b/packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
new file mode 100644
index 0000000000..c51c80931c
--- /dev/null
+++ b/packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
@@ -0,0 +1,18 @@
+Index: src/map_handler.c
+===================================================================
+--- aa/src/map_handler.c (Revision 1699)
++++ aa/src/map_handler.c (Revision 1700)
+@@ -660,9 +660,12 @@
+ if (maploaded)
+ gdk_pixbuf_unref (image);
+
++#ifdef MAPNIK
+ if ( !strcmp (filename,"mapnik") ) {
+ limage = gdk_pixbuf_new_from_data(get_mapnik_imagedata(), GDK_COLORSPACE_RGB, FALSE, 8, 1280, 1024, 1280 * 3, NULL, NULL);
+- } else {
++ } else
++#endif
++ {
+ limage = gdk_pixbuf_new_from_file (filename, NULL);
+ if (limage == NULL)
+ {