[Title] Fix to stride bug on Evas DRI2
authorWonsik Jung <sidein@samsung.com>
Tue, 23 Apr 2013 09:24:25 +0000 (18:24 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 11 Jun 2013 12:16:15 +0000 (21:16 +0900)
[Problem]  When window's width is odd, window is appeared diagonal image
[Cause]    When Pixman object is created, stride is not used
[Solution] Input width should be used stride value
[Team]     Graphics

Change-Id: If33598bc07d84eb0c4b9e553fd670952686711c6

src/modules/engines/software_x11/evas_xlib_swapbuf.c

index 1763c26..dd6036b 100755 (executable)
@@ -231,13 +231,13 @@ evas_software_xlib_swapbuf_new_region_for_update(Outbuf *buf, int x, int y, int
 #ifdef EVAS_CSERVE2
              if (evas_cserve2_use_get())
                im = (RGBA_Image *)evas_cache2_image_data(evas_common_image_cache2_get(),
-                                                         ww, hh, data,
+                                                         bpl/4, hh, data,
                                                          buf->priv.destination_alpha,
                                                          EVAS_COLORSPACE_ARGB8888);
              else
 #endif
                im = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(),
-                                                        ww, hh, data,
+                                                        bpl/4, hh, data,
                                                         buf->priv.destination_alpha,
                                                         EVAS_COLORSPACE_ARGB8888);
              buf->priv.onebuf = im;