[totem] grilo: Add comments to load_icon()



commit 4c80e891b3ccc48adab7c6a2312a00465095b897
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 17 14:41:42 2014 +0100

    grilo: Add comments to load_icon()

 src/plugins/grilo/icon-helpers.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/icon-helpers.c b/src/plugins/grilo/icon-helpers.c
index bea2ca1..8a92563 100644
--- a/src/plugins/grilo/icon-helpers.c
+++ b/src/plugins/grilo/icon-helpers.c
@@ -203,12 +203,16 @@ load_icon (Totem      *totem,
 
        /* Draw a border */
        if (with_border) {
+               /* top */
                for (x = 0; x < THUMB_SEARCH_SIZE; x++)
                        put_pixel (pixels + x * 4);
+               /* bottom */
                for (x = 0; x < THUMB_SEARCH_SIZE; x++)
                        put_pixel (pixels + (THUMB_SEARCH_HEIGHT -1) * rowstride + x * 4);
+               /* left */
                for (y = 1; y < THUMB_SEARCH_HEIGHT - 1; y++)
                        put_pixel (pixels + y * rowstride);
+               /* right */
                for (y = 1; y < THUMB_SEARCH_HEIGHT - 1; y++)
                        put_pixel (pixels + y * rowstride + (THUMB_SEARCH_SIZE - 1) * 4);
        }


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