[libgnomeprint] Simplify EMPTY_GLYPH handling
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomeprint] Simplify EMPTY_GLYPH handling
- Date: Fri, 16 Nov 2012 00:33:32 +0000 (UTC)
commit 0e4d1025ca1e034ef6f9cd2793214c3c1858a947
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Nov 15 16:33:11 2012 -0800
Simplify EMPTY_GLYPH handling
If this breaks your build, you REALLY should upgrade your Pango...
libgnomeprint/gnome-print-pango.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/libgnomeprint/gnome-print-pango.c b/libgnomeprint/gnome-print-pango.c
index 8b4391a..e6cb5d7 100644
--- a/libgnomeprint/gnome-print-pango.c
+++ b/libgnomeprint/gnome-print-pango.c
@@ -36,12 +36,6 @@
#include <pango/pangofc-font.h>
#include <pango/pangoft2.h>
-#ifdef PANGO_GLYPH_EMPTY
-#define EMPTY_GLYPH PANGO_GLYPH_EMPTY
-#else
-#define EMPTY_GLYPH 0
-#endif
-
/**
* is_gnome_print_key :
*
@@ -305,7 +299,7 @@ gnome_print_pango_glyph_string (GnomePrintContext *gpc, PangoFont *font, PangoGl
for (i = 0; i < glyphs->num_glyphs; i++) {
PangoGlyphInfo *gi = &glyphs->glyphs[i];
- if (gi->glyph != EMPTY_GLYPH) {
+ if (gi->glyph != PANGO_GLYPH_EMPTY) {
int x = x_off + gi->geometry.x_offset;
int y = gi->geometry.y_offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]