Hello.

When I tested some bmp files on evas, I found one bmp file is not displayed.
But this bmp file is displayed on windows and linux gimp and etc.
So I checked this bmp file, this file have 208 data per line despite 207
pixel per line!!

I fixed code to skip the data when data is more than width instead of break.
I think this is not bug but evas policy problem.

Can anybody check this patch?

Thanks.
Index: src/modules/loaders/bmp/evas_image_load_bmp.c
===================================================================
--- src/modules/loaders/bmp/evas_image_load_bmp.c       (revision 56885)
+++ src/modules/loaders/bmp/evas_image_load_bmp.c       (working copy)
@@ -812,12 +812,14 @@ evas_image_load_file_data_bmp(Image_Entry *ie, con
                             unsigned int col = pal[p[1]];
                             
                             count = p[0];
-                            if ((x + p[0]) > w) break;
-                            while (count > 0)
+                            if ((x + p[0]) <= w)
                               {
-                                 *pix = col;
-                                 pix++;
-                                 count--;
+                                 while (count > 0)
+                                   {
+                                      *pix = col;
+                                      pix++;
+                                      count--;
+                                   }
                               }
                             x += p[0];
                             p += 2;
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to