[metacity] libmetacity: rename scale_surface to get_surface_from_pixbuf



commit 20af27b6d5b75ce3dcf202e136a3edf68faa6318
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Aug 7 16:57:22 2016 +0300

    libmetacity: rename scale_surface to get_surface_from_pixbuf

 libmetacity/meta-draw-op.c |   40 ++++++++++++++++++++--------------------
 1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/libmetacity/meta-draw-op.c b/libmetacity/meta-draw-op.c
index 9103ed5..fa612fd 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]