[prev in list] [next in list] [prev in thread] [next in thread] 

List:       enlightenment-svn
Subject:    E SVN: yoz trunk/evas_generic_loaders/src/bin/raw
From:       "Enlightenment SVN" <no-reply () enlightenment ! org>
Date:       2011-05-31 10:21:25
Message-ID: 20110531102125.9D10911955E () e2 ! enlightenment ! org
[Download RAW message or body]

Log:
evas_generic_loader: fix raw shmfile. It's a typo :P

Author:       yoz
Date:         2011-05-31 03:21:25 -0700 (Tue, 31 May 2011)
New Revision: 59838
Trac:         http://trac.enlightenment.org/e/changeset/59838

Modified:
  trunk/evas_generic_loaders/src/bin/raw/main.c 

Modified: trunk/evas_generic_loaders/src/bin/raw/main.c
===================================================================
--- trunk/evas_generic_loaders/src/bin/raw/main.c	2011-05-31 09:50:56 UTC (rev 59837)
+++ trunk/evas_generic_loaders/src/bin/raw/main.c	2011-05-31 10:21:25 UTC (rev 59838)
@@ -85,10 +85,9 @@
           goto clean_image;
         *w = image->width;
         *h = image->height;
-//        shm_alloc(image->width * image->height * (sizeof(DATA32)));
-//        if (!shm_addr)
-//          goto clean_image;
-        shm_addr = malloc(image->width * image->height * (sizeof(DATA32)));
+        shm_alloc(image->width * image->height * (sizeof(DATA32)));
+        if (!shm_addr)
+          goto clean_image;
         memset(shm_addr, 0, image->width * image->height * (sizeof(DATA32)));
         if (image->type != LIBRAW_IMAGE_BITMAP)
           goto clean_image;
@@ -182,7 +181,7 @@
              printf("size %d %d\n", w, h);
              printf("alpha 1\n");
 
-             if (shm_fd >= 0) printf("shm file %s\n", shmfile);
+             if (shm_fd >= 0) printf("shmfile %s\n", shmfile);
              else
                {
                   printf("data\n");


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
enlightenment-svn mailing list
enlightenment-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic