Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_thumb.c
Log Message:
stat elements are only 32 bits.
remove unused variables.
pass right pointer to evas_object_image_alpha_get()
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_thumb.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_thumb.c 23 Oct 2005 13:56:27 -0000 1.9
+++ e_thumb.c 23 Oct 2005 15:07:56 -0000 1.10
@@ -88,7 +88,7 @@
_e_thumb_image_create(char *file, Evas_Coord w, Evas_Coord h, int *ww, int
*hh, int *alpha, Evas_Object **im, Ecore_Evas **buf)
{
Evas *evasbuf;
- int size, iw, ih;
+ int iw, ih;
*buf = ecore_evas_buffer_new(1, 1);
evasbuf = ecore_evas_get(*buf);
@@ -96,8 +96,7 @@
evas_object_image_file_set(*im, file, NULL);
iw = 0; ih = 0;
evas_object_image_size_get(*im, &iw, &ih);
- //*alpha = evas_object_image_alpha_get(im);
- *alpha = 1; //why doesnt the above one work?
+ *alpha = evas_object_image_alpha_get(*im);
if ((iw > 0) && (ih > 0))
{
*ww = w;
@@ -238,9 +237,8 @@
char *thumbpath, *ext;
Evas_Object *im;
const int *data;
- int size, iw, ih, ww, hh;
+ int size, ww, hh;
Ecore_Evas *buf;
- Evas *evasbuf;
int alpha;
ext = strrchr(file, '.');
@@ -306,10 +304,7 @@
Eet_File *ef;
char *thumb, *ext;
Evas_Object *im = NULL;
- void *data;
- unsigned int w, h;
- int a, c, q, l;
-
+
#define DEF_THUMB_RETURN im = evas_object_rectangle_add(evas); \
evas_object_color_set(im, 255, 255, 255, 255); \
evas_object_resize(im, width, height); \
@@ -387,21 +382,19 @@
"ghijklmnopqrstuv"
"[EMAIL PROTECTED]&*()"
"[];',.{}<>?-=_+|";
- unsigned int id[6], i;
+ unsigned int id[4], i;
struct stat st;
if (stat(file, &st) < 0)
return NULL;
- id[0] = (int)st.st_ino;
- id[1] = (int)st.st_dev;
- id[2] = (int)(st.st_size & 0xffffffff);
- id[3] = (int)((st.st_size >> 32) & 0xffffffff);
- id[4] = (int)(st.st_mtime & 0xffffffff);
- id[5] = (int)((st.st_mtime >> 32) & 0xffffffff);
+ id[0] = st.st_ino;
+ id[1] = st.st_dev;
+ id[2] = (st.st_size & 0xffffffff);
+ id[3] = (st.st_mtime & 0xffffffff);
sp = s;
- for (i = 0; i < 6; i++)
+ for (i = 0; i < 4; i++)
{
unsigned int t, tt;
int j;
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs