[metacity/gnome-3-20] libmetacity: rename scale_surface to get_surface_from_pixbuf



commit c211c415d30e3bc7bc8b858396e9123a1c4e067b
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 b6e50e1..b990361 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:


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