derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b5205a0ca3ca63319f479a56b289ba5c3e4bb1eb

commit b5205a0ca3ca63319f479a56b289ba5c3e4bb1eb
Author: Derek Foreman <[email protected]>
Date:   Fri Nov 4 16:11:55 2016 -0500

    Stop passing dimensions to _e_comp_wl_surface_state_init
    
    The dimensions we passed were frequently wrong anyway, so let's stop
    doing that.
---
 src/bin/e_comp_wl.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 39093b4..0c1b1f4 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1234,7 +1234,7 @@ _e_comp_wl_surface_state_cb_buffer_destroy(struct 
wl_listener *listener, void *d
 }
 
 static void
-_e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state, int w, int h)
+_e_comp_wl_surface_state_init(E_Comp_Wl_Surface_State *state)
 {
    state->new_attach = EINA_FALSE;
    state->buffer = NULL;
@@ -2271,7 +2271,7 @@ _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, 
uint32_t id, struct wl
    wl_resource_set_implementation(res, &_e_subsurface_interface, ec,
                                   _e_comp_wl_subsurface_destroy);
 
-   _e_comp_wl_surface_state_init(&sdata->cached, ec->w, ec->h);
+   _e_comp_wl_surface_state_init(&sdata->cached);
 
    /* set subsurface data properties */
    sdata->resource = res;
@@ -2397,8 +2397,7 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client 
*ec)
      }
 
    wl_signal_init(&ec->comp_data->destroy_signal);
-
-   _e_comp_wl_surface_state_init(&ec->comp_data->pending, ec->w, ec->h);
+   _e_comp_wl_surface_state_init(&ec->comp_data->pending);
 
    /* set initial client properties */
    ec->argb = EINA_TRUE;

-- 


Reply via email to