devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=89d4384b142b0960f607888dfdf4764746d5bb50

commit 89d4384b142b0960f607888dfdf4764746d5bb50
Author: Chris Michael <[email protected]>
Date:   Wed Jul 9 11:17:21 2014 -0400

    evas-engine-drm: Fix update of output buffer size
    
    Adjust the ob->w/h dimensions After the framebuffer has been setup
    because we cannot have output buffers smaller than the framebuffer
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/drm/evas_outbuf.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/drm/evas_outbuf.c 
b/src/modules/evas/engines/drm/evas_outbuf.c
index de94e64..9873b75 100644
--- a/src/modules/evas/engines/drm/evas_outbuf.c
+++ b/src/modules/evas/engines/drm/evas_outbuf.c
@@ -83,8 +83,6 @@ evas_outbuf_setup(Evas_Engine_Info_Drm *info, int w, int h)
    /* set properties of outbuf */
    ob->w = w;
    ob->h = h;
-   if (ob->w < ob->priv.mode.hdisplay) ob->w = ob->priv.mode.hdisplay;
-   if (ob->h < ob->priv.mode.vdisplay) ob->h = ob->priv.mode.vdisplay;
 
    ob->depth = info->info.depth;
    ob->rotation = info->info.rotation;
@@ -102,6 +100,9 @@ evas_outbuf_setup(Evas_Engine_Info_Drm *info, int w, int h)
         return NULL;
      }
 
+   if (ob->w < ob->priv.mode.hdisplay) ob->w = ob->priv.mode.hdisplay;
+   if (ob->h < ob->priv.mode.vdisplay) ob->h = ob->priv.mode.vdisplay;
+
    info->info.output = ob->priv.fb;
 
    ob->priv.num = NUM_BUFFERS;

-- 


Reply via email to