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 20:33:37 +0300
commit20af27b6d5b75ce3dcf202e136a3edf68faa6318 (patch)
tree7d340cc94870570be9708a73c6269e971f6271f3
parent696d530f8bb2f1eff5dab76aff08a02220a5a3b6 (diff)
downloadmetacity-20af27b6d5b75ce3dcf202e136a3edf68faa6318.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 9103ed5d..fa612fde 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;
@@ -250,20 +250,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;
}
@@ -272,11 +272,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_TINT: