directfb: fix build with BR2_PACKAGE_DIRECTFB_DEBUG
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 2 Oct 2009 10:55:39 +0000 (12:55 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 2 Oct 2009 10:55:39 +0000 (12:55 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/directfb/directfb-gfxcard-fix-build-error-with-debug.patch [new file with mode: 0644]

diff --git a/package/directfb/directfb-gfxcard-fix-build-error-with-debug.patch b/package/directfb/directfb-gfxcard-fix-build-error-with-debug.patch
new file mode 100644 (file)
index 0000000..2c1d459
--- /dev/null
@@ -0,0 +1,33 @@
+From fab69ff2e063f0b6a4b13139f100ff01aa4cae84 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Date: Fri, 2 Oct 2009 12:20:31 +0200
+Subject: [PATCH] gfxcard: fix build error with --enable-debug
+
+Commit fdc611ea (Added support for colors and multiple layers in a
+glyph implementing outlines) changed dfb_gfxcard_drawglyph() to take
+a layers argument instead of index, but the D_DEBUG_AT call wasn't
+changed to match.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ src/core/gfxcard.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/core/gfxcard.c b/src/core/gfxcard.c
+index 127e30e..0020103 100644
+--- a/src/core/gfxcard.c
++++ b/src/core/gfxcard.c
+@@ -2335,8 +2335,8 @@ void dfb_gfxcard_drawglyph( CoreGlyphData **glyph, int x, int y,
+      DFBSurfaceBlendFunction  orig_srcblend;
+      DFBSurfaceBlendFunction  orig_dstblend;
+-     D_DEBUG_AT( Core_GraphicsOps, "%s( %u, %d,%d, %p, %p )\n",
+-                 __FUNCTION__, index, x, y, font, state );
++     D_DEBUG_AT( Core_GraphicsOps, "%s( %d,%d, %u, %p, %p )\n",
++                 __FUNCTION__, x, y, layers, font, state );
+      D_ASSERT( card != NULL );
+      D_ASSERT( card->shared != NULL );
+-- 
+1.6.3.3
+