summaryrefslogtreecommitdiff
path: root/packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-02-29 11:06:25 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2008-02-29 11:06:25 +0000
commit470cd7c509ebd6885078208fbed76c5d19481b3d (patch)
treee7e42f176e9835e8cff1c167e315f91f33ab9721 /packages/gpsdrive/gpsdrive-2.10pre4/gpsdrive-ifdef-mapnik.patch
parent2aa3d0842e9cde0ca04d41771b2c5c49e911ffe8 (diff)
gpsdrive: add 2.10pre4
* http://bugs.openembedded.org/show_bug.cgi?id=3670 * plus some polishment
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)
+ {