Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/directfb
Modified Files:
evas_engine_dfb_image_objects.c
Log Message:
fix dfb engine - correctness changes for hash
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/evas/src/modules/engines/directfb/evas_engine_dfb_image_objects.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_engine_dfb_image_objects.c 15 Jan 2006 06:21:04 -0000 1.2
+++ evas_engine_dfb_image_objects.c 16 Jan 2006 03:37:34 -0000 1.3
@@ -1,4 +1,4 @@
-#include "evas_engine_dfb.h"
+~#include "evas_engine_dfb.h"
#include <math.h>
#include <string.h>
@@ -42,7 +42,7 @@
*error = 0;
if (!file) return NULL;
- mod_time = evas_file_modified_time(file);
+// mod_time = evas_file_modified_time(file);
im = _dfb_image_find(file, key, mod_time);
if (im)
{
@@ -84,7 +84,7 @@
if (img_desc.caps & DICAPS_ALPHACHANNEL)
im->flags |= RGBA_IMAGE_HAS_ALPHA;
- im->timestamp = mod_time;
+// im->timestamp = mod_time;
if (file)
im->info.file = strdup(file);
if (key)
@@ -705,8 +705,10 @@
if (im->info.file) l1 = strlen(im->info.file);
l2 = 0;
if (im->info.key) l2 = strlen(im->info.key);
- snprintf(buf, sizeof(buf), "%llx", im->timestamp);
- l3 = strlen(buf);
+// snprintf(buf, sizeof(buf), "%llx", im->timestamp);
+// l3 = strlen(buf);
+ buf[0] = 0;
+ l3 = 0;
key = malloc(l1 + 3 + l2 + 3 + l3 +1);
if (!key) return;
key[0] = 0;
@@ -733,8 +735,10 @@
if (im->info.file) l1 = strlen(im->info.file);
l2 = 0;
if (im->info.key) l2 = strlen(im->info.key);
- snprintf(buf, sizeof(buf), "%llx", im->timestamp);
- l3 = strlen(buf);
+// snprintf(buf, sizeof(buf), "%llx", im->timestamp);
+// l3 = strlen(buf);
+ buf[0] = 0;
+ l3 = 0;
key = malloc(l1 + 3 + l2 + 3 + l3 +1);
if (!key) return;
key[0] = 0;
@@ -763,8 +767,10 @@
if (filename) l1 = strlen(filename);
l2 = 0;
if (key) l2 = strlen(key);
- sprintf(buf, "%llx", timestamp);
- l3 = strlen(buf);
+// sprintf(buf, "%llx", timestamp);
+// l3 = strlen(buf);
+ buf[0] = 0;
+ l3 = 0;
str = malloc(l1 + 3 + l2 + 3 + l3 +1);
if (!str) return NULL;
str[0] = 0;
@@ -793,9 +799,9 @@
ok++;
if ((!key) && (!im->info.key))
ok++;
- if (im->timestamp == timestamp)
- ok++;
- if (ok >= 3) return im;
+// if (im->timestamp == timestamp)
+// ok++;
+ if (ok >= 2) return im;
}
return NULL;
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs