devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4f8b8cd3983d901e3d5dce16816a9297a5bdbcbd

commit 4f8b8cd3983d901e3d5dce16816a9297a5bdbcbd
Author: Chris Michael <[email protected]>
Date:   Wed Jul 9 11:15:39 2014 -0400

    evas-engine-drm: Fix software_generic_update to use the correct size.
    
    We cannot use epd->output.w/h in these calls as the setup of the
    output buffer May cause a resize. Drm buffers cannot be allocated
    Smaller than the framebuffer size, so evas_drm_outbuf_setup function
    May resize the ob->w/h to match the framebuffer.
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_engine.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_engine.c 
b/src/modules/evas/engines/drm/evas_engine.c
index 2f6df27..f35a64c 100644
--- a/src/modules/evas/engines/drm/evas_engine.c
+++ b/src/modules/evas/engines/drm/evas_engine.c
@@ -50,7 +50,8 @@ _output_setup(Evas_Engine_Info_Drm *info, int w, int h)
                                                  
evas_outbuf_update_region_push,
                                                  
evas_outbuf_update_region_free,
                                                  NULL, evas_outbuf_flush,
-                                                 evas_outbuf_free, w, h))
+                                                 evas_outbuf_free, 
+                                                 ob->w, ob->h))
      goto on_error;
 
    /* return the allocated render_engine structure */
@@ -142,7 +143,8 @@ eng_setup(Evas *evas, void *einfo)
         if (!ob) return 0;
 
         /* if we have an existing outbuf, free it */
-        evas_render_engine_software_generic_update(&re->generic, ob, 
epd->output.w, epd->output.h);
+        evas_render_engine_software_generic_update(&re->generic, ob, 
+                                                   ob->w, ob->h);
      }
 
    /* update the info structure pointer */

-- 


Reply via email to