summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fcfontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-11-28 21:17:39 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-11-28 21:17:39 +0000
commit730324111fd91f6778a8da8cacb3fe4b2eab64c7 (patch)
tree17f055e08b7ef1697cf982d2f061aa204baa8d80 /pango/pangocairo-fcfontmap.c
parentca3bbbed0304c49cda8a222d52a75235c3c0c6cf (diff)
downloadpango-730324111fd91f6778a8da8cacb3fe4b2eab64c7.tar.gz
Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the object
2006-11-28 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-fcfont.c (pango_cairo_fc_font_get_font_face), (pango_cairo_fc_font_install), (pango_cairo_fc_font_finalize), (pango_cairo_fc_font_get_metrics), (pango_cairo_fc_font_shutdown), (_pango_cairo_fc_font_new): * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_set_resolution), (pango_cairo_fc_font_map_get_resolution_cairo), (pango_cairo_fc_font_map_get_renderer), (pango_cairo_fc_font_map_finalize), (pango_cairo_fc_font_map_get_resolution_fc), (pango_cairo_fc_font_map_create_font): * pango/pangocairo-font.c (_pango_cairo_font_install), (_pango_cairo_font_get_font_face), (_pango_cairo_font_get_scaled_font), (_pango_cairo_font_get_hex_box_info): * pango/pangocairo-fontmap.c (pango_cairo_create_layout): * pango/pangocairo-render.c (set_color), (_pango_cairo_renderer_draw_unknown_glyph), (pango_cairo_renderer_draw_glyphs), (pango_cairo_renderer_draw_rectangle), (pango_cairo_renderer_draw_error_underline): Use simple, fast, casts instead of PANGO_CAIRO_*() macros where the object cannot have reached us if it wasn't of the right type.
Diffstat (limited to 'pango/pangocairo-fcfontmap.c')
-rw-r--r--pango/pangocairo-fcfontmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pango/pangocairo-fcfontmap.c b/pango/pangocairo-fcfontmap.c
index f6e96aa5..83a39616 100644
--- a/pango/pangocairo-fcfontmap.c
+++ b/pango/pangocairo-fcfontmap.c
@@ -37,17 +37,17 @@ static void
pango_cairo_fc_font_map_set_resolution (PangoCairoFontMap *cfontmap,
double dpi)
{
- PangoCairoFcFontMap *cffontmap = PANGO_CAIRO_FC_FONT_MAP (cfontmap);
+ PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (cfontmap);
cffontmap->dpi = dpi;
- pango_fc_font_map_cache_clear (PANGO_FC_FONT_MAP (cfontmap));
+ pango_fc_font_map_cache_clear ((PangoFcFontMap *) (cfontmap));
}
static double
pango_cairo_fc_font_map_get_resolution_cairo (PangoCairoFontMap *cfontmap)
{
- PangoCairoFcFontMap *cffontmap = PANGO_CAIRO_FC_FONT_MAP (cfontmap);
+ PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (cfontmap);
return cffontmap->dpi;
}
@@ -55,7 +55,7 @@ pango_cairo_fc_font_map_get_resolution_cairo (PangoCairoFontMap *cfontmap)
static PangoRenderer *
pango_cairo_fc_font_map_get_renderer (PangoCairoFontMap *cfontmap)
{
- PangoCairoFcFontMap *cffontmap = PANGO_CAIRO_FC_FONT_MAP (cfontmap);
+ PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (cfontmap);
if (!cffontmap->renderer)
cffontmap->renderer = g_object_new (PANGO_TYPE_CAIRO_RENDERER, NULL);
@@ -77,7 +77,7 @@ G_DEFINE_TYPE_WITH_CODE (PangoCairoFcFontMap, pango_cairo_fc_font_map, PANGO_TYP
static void
pango_cairo_fc_font_map_finalize (GObject *object)
{
- PangoCairoFcFontMap *cffontmap = PANGO_CAIRO_FC_FONT_MAP (object);
+ PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (object);
if (cffontmap->renderer)
g_object_unref (cffontmap->renderer);
@@ -104,7 +104,7 @@ static double
pango_cairo_fc_font_map_get_resolution_fc (PangoFcFontMap *fcfontmap,
PangoContext *context)
{
- PangoCairoFcFontMap *cffontmap = PANGO_CAIRO_FC_FONT_MAP (fcfontmap);
+ PangoCairoFcFontMap *cffontmap = (PangoCairoFcFontMap *) (fcfontmap);
double dpi;
if (context)
@@ -163,7 +163,7 @@ pango_cairo_fc_font_map_create_font (PangoFcFontMap *fcfontmap,
const PangoFontDescription *desc,
FcPattern *pattern)
{
- return _pango_cairo_fc_font_new (PANGO_CAIRO_FC_FONT_MAP (fcfontmap),
+ return _pango_cairo_fc_font_new ((PangoCairoFcFontMap *) (fcfontmap),
context, desc, pattern);
}