summaryrefslogtreecommitdiff
path: root/pango/pangoft2.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangoft2.c')
-rw-r--r--pango/pangoft2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/pangoft2.c b/pango/pangoft2.c
index 93f1b18b..e7616abb 100644
--- a/pango/pangoft2.c
+++ b/pango/pangoft2.c
@@ -169,7 +169,8 @@ pango_ft2_font_get_face (PangoFont *font)
/**
* pango_ft2_get_context:
- * @dpi: the dpi of the target device
+ * @dpi_x: the horizontal dpi of the target device
+ * @dpi_y: the vertical dpi of the target device
*
* Retrieves a #PangoContext appropriate for rendering with the PangoFT2
* backend.
@@ -177,7 +178,7 @@ pango_ft2_font_get_face (PangoFont *font)
* Return value: the new #PangoContext
**/
PangoContext *
-pango_ft2_get_context (double dpi)
+pango_ft2_get_context (double dpi_x, double dpi_y)
{
PangoContext *result;
static gboolean registered_modules = FALSE;
@@ -191,7 +192,7 @@ pango_ft2_get_context (double dpi)
pango_module_register (&_pango_included_ft2_modules[i]);
}
- MiniXftSetDPI (dpi);
+ MiniXftSetDPI (dpi_y);
result = pango_context_new ();
pango_context_set_font_map (result, pango_ft2_font_map_for_display ());