summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-08-07 16:57:22 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-08-07 21:13:46 +0300
commitc211c415d30e3bc7bc8b858396e9123a1c4e067b (patch)
tree49be4972714ccb651fafcb4a7cc1193e8ca54221
parent277c5d73288a7a7a705cb04fe775e48d5e64d3f9 (diff)
downloadmetacity-c211c415d30e3bc7bc8b858396e9123a1c4e067b.tar.gz
libmetacity: rename scale_surface to get_surface_from_pixbuf
-rw-r--r--libmetacity/meta-draw-op.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/libmetacity/meta-draw-op.c b/libmetacity/meta-draw-op.c
index b6e50e1b..b9903612 100644
--- a/libmetacity/meta-draw-op.c
+++ b/libmetacity/meta-draw-op.c
@@ -76,12 +76,12 @@ fill_env (MetaPositionExprEnv *env,
}
static cairo_surface_t *
-scale_surface (GdkPixbuf *src,
- MetaImageFillType fill_type,
- gdouble width,
- gdouble height,
- gboolean vertical_stripes,
- gboolean horizontal_stripes)
+get_surface_from_pixbuf (GdkPixbuf *src,
+ MetaImageFillType fill_type,
+ gdouble width,
+ gdouble height,
+ gboolean vertical_stripes,
+ gboolean horizontal_stripes)
{
gdouble pixbuf_width;
gdouble pixbuf_height;
@@ -268,20 +268,20 @@ draw_op_as_surface (const MetaDrawOp *op,
if (op->data.image.colorize_cache_pixbuf)
{
- surface = scale_surface (op->data.image.colorize_cache_pixbuf,
- op->data.image.fill_type,
- width, height,
- op->data.image.vertical_stripes,
- op->data.image.horizontal_stripes);
+ surface = get_surface_from_pixbuf (op->data.image.colorize_cache_pixbuf,
+ op->data.image.fill_type,
+ width, height,
+ op->data.image.vertical_stripes,
+ op->data.image.horizontal_stripes);
}
}
else
{
- surface = scale_surface (op->data.image.pixbuf,
- op->data.image.fill_type,
- width, height,
- op->data.image.vertical_stripes,
- op->data.image.horizontal_stripes);
+ surface = get_surface_from_pixbuf (op->data.image.pixbuf,
+ op->data.image.fill_type,
+ width, height,
+ op->data.image.vertical_stripes,
+ op->data.image.horizontal_stripes);
}
break;
}
@@ -295,11 +295,11 @@ draw_op_as_surface (const MetaDrawOp *op,
if (info->mini_icon &&
width <= gdk_pixbuf_get_width (info->mini_icon) &&
height <= gdk_pixbuf_get_height (info->mini_icon))
- surface = scale_surface (info->mini_icon, op->data.icon.fill_type,
- width, height, FALSE, FALSE);
+ surface = get_surface_from_pixbuf (info->mini_icon, op->data.icon.fill_type,
+ width, height, FALSE, FALSE);
else if (info->icon)
- surface = scale_surface (info->icon, op->data.icon.fill_type,
- width, height, FALSE, FALSE);
+ surface = get_surface_from_pixbuf (info->icon, op->data.icon.fill_type,
+ width, height, FALSE, FALSE);
break;
case META_DRAW_TITLE: