summaryrefslogtreecommitdiff
path: root/src/cairo-surface.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2006-07-31 14:50:50 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-07-31 14:50:50 -0400
commit9fcb3c32c1f16fe6ab913e27eb54d18b7d9a06b0 (patch)
tree5a295d0eb80b868424d15cca31d7968c00952787 /src/cairo-surface.c
parenta61ac1aeedca3a032b9d53715afb5d52c06efec0 (diff)
Set fallback resolution in create_similar. Update docs to reflect that.
Diffstat (limited to 'src/cairo-surface.c')
-rw-r--r--src/cairo-surface.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index ceceab576..cad5a33c8 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -261,6 +261,10 @@ _cairo_surface_create_similar_scratch (cairo_surface_t *other,
cairo_surface_get_font_options (other, &options);
_cairo_surface_set_font_options (surface, &options);
+ cairo_surface_set_fallback_resolution (surface,
+ other->x_fallback_resolution,
+ other->y_fallback_resolution);
+
return surface;
}
@@ -273,8 +277,10 @@ _cairo_surface_create_similar_scratch (cairo_surface_t *other,
*
* Create a new surface that is as compatible as possible with an
* existing surface. The new surface will use the same backend as
- * @other unless that is not possible for some reason. The type of the
- * returned surface may be examined with cairo_surface_get_type().
+ * @other unless that is not possible for some reason. However, the
+ * created surface will have same fallback resolution and font options
+ * as the existing surface. The type of the returned surface may be
+ * examined with cairo_surface_get_type().
* Initially the surface contents are all 0 (transparent if contents
* have transparency, black otherwise.)
*