Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        backgrounds.c pager.c x.c 


Log Message:
Add .png to cached image file names.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/backgrounds.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- backgrounds.c       24 Jul 2005 12:22:18 -0000      1.35
+++ backgrounds.c       24 Jul 2005 18:29:50 -0000      1.36
@@ -784,7 +784,7 @@
 
    if (thumb)
      {
-       Esnprintf(thumb, thlen, "%s/cached/img/%s", EDirUserCache(), bgid);
+       Esnprintf(thumb, thlen, "%s/cached/img/%s.png", EDirUserCache(), bgid);
        if (bg && exists(thumb) && moddate(thumb) > moddate(file))
           return bg;
        /* The thumbnail is gone or outdated - regererate */
@@ -951,7 +951,7 @@
    Imlib_Image        *im;
    Pixmap              pmap;
 
-   Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s", EDirUserCache(),
+   Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s.png", EDirUserCache(),
             BackgroundGetName(bg));
    pmap = ECreatePixmap(VRoot.win, 64, 48, VRoot.depth);
    BackgroundApply(bg, pmap, 64, 48, 0);
@@ -1781,7 +1781,7 @@
               }
             else
               {
-                 Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s",
+                 Esnprintf(s, sizeof(s), "%s/cached/bgsel/%s.png",
                            EDirUserCache(), BackgroundGetName(bglist[i]));
                  im = ELoadImage(s);
                  if (!im)
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/pager.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -3 -r1.163 -r1.164
--- pager.c     24 Jul 2005 12:22:19 -0000      1.163
+++ pager.c     24 Jul 2005 18:29:50 -0000      1.164
@@ -509,7 +509,7 @@
        Imlib_Image        *im;
 
        uniq = BackgroundGetUniqueString(bg);
-       Esnprintf(s, sizeof(s), "%s/cached/pager/%s.%i.%i.%s",
+       Esnprintf(s, sizeof(s), "%s/cached/pager/%s.%i.%i.%s.png",
                  EDirUserCache(), BackgroundGetName(bg), p->dw, p->dh, uniq);
        Efree(uniq);
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/x.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -3 -r1.101 -r1.102
--- x.c 16 Jul 2005 16:57:44 -0000      1.101
+++ x.c 24 Jul 2005 18:29:50 -0000      1.102
@@ -1573,7 +1573,7 @@
    im = imlib_create_image_from_drawable(None, 0, 0, w, h, 
!EServerIsGrabbed());
    imlib_context_set_image(im);
    imlib_image_set_format("png");
-   sprintf(buf, "%s-%#lx-%d", txt, draw, seqn++);
+   sprintf(buf, "%s-%#lx-%d.png", txt, draw, seqn++);
    Eprintf("EDrawableDumpImage: %s\n", buf);
    imlib_save_image(buf);
    imlib_free_image_and_decache();




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to