sung pushed a commit to branch master.

commit cb103f49db4107d465135efb2a6945c56b3d2632
Author: Sung W. Park <[email protected]>
Date:   Thu Mar 7 19:20:40 2013 +0900

    Elementary elm_glview: call surface update when mode changes
    
    When glview mode was set using elm_glview_mode_set() function, it
    wasn't properly calling the surface_update function internally.
    This can potentially cause the surface to be not updated to the latest
    mode that was set by the user.  Also removed a call to the surface
    update function that was unnecessary.
---
 src/lib/elm_glview.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_glview.c b/src/lib/elm_glview.c
index 3bd2825..65b8608 100644
--- a/src/lib/elm_glview.c
+++ b/src/lib/elm_glview.c
@@ -353,6 +353,7 @@ _mode_set(Eo *obj, void *_pd, va_list *list)
 
    sd->mode = mode;
 
+   _glview_update_surface(obj);
    elm_glview_changed_set(obj);
 
    if (ret) *ret = EINA_TRUE;
@@ -423,7 +424,6 @@ _render_policy_set(Eo *obj, void *_pd, va_list *list)
 
    sd->render_policy = policy;
    _set_render_policy_callback(obj);
-   _glview_update_surface(obj);
 }
 
 EAPI void
@@ -446,8 +446,8 @@ _size_set(Eo *obj, void *_pd, va_list *list)
 
    sd->w = w;
    sd->h = h;
-   _glview_update_surface(obj);
 
+   _glview_update_surface(obj);
    elm_glview_changed_set(obj);
 }
 

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to