summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-04-15 10:32:29 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-19 15:11:10 -0400
commit8635f56aeb5d98c7de204b6a1a0c3a9b54af77f3 (patch)
tree22d8892c29c583b7e9a6da89cc4795e87f6c809d /src/modules/evas/engines/wayland_shm/evas_shm.c
parent0ada4d3d56e5b5ed447ba7fc89d40cbddfb95ad0 (diff)
wayland_shm: pass engine info to shm_surface_create
Gratuitous change to pass less parameters and make some code prettier.
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index d2c02f5b3b..f716865a45 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -569,7 +569,7 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count)
569} 569}
570 570
571Surface * 571Surface *
572_evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_surface *surface, int w, int h, int num_buff, Eina_Bool alpha, int compositor_version) 572_evas_shm_surface_create(Evas_Engine_Info_Wayland_Shm *info, int w, int h, int num_buff)
573{ 573{
574 Surface *s; 574 Surface *s;
575 Shm_Surface *surf; 575 Shm_Surface *surf;
@@ -584,12 +584,12 @@ _evas_shm_surface_create(struct wl_display *disp, struct wl_shm *shm, struct wl_
584 584
585 surf->w = w; 585 surf->w = w;
586 surf->h = h; 586 surf->h = h;
587 surf->disp = disp; 587 surf->disp = info->info.wl_disp;
588 surf->shm = shm; 588 surf->shm = info->info.wl_shm;
589 surf->surface = surface; 589 surf->surface = info->info.wl_surface;
590 surf->num_buff = num_buff; 590 surf->num_buff = num_buff;
591 surf->alpha = alpha; 591 surf->alpha = info->info.destination_alpha;
592 surf->compositor_version = compositor_version; 592 surf->compositor_version = info->info.compositor_version;
593 593
594 /* create surface buffers */ 594 /* create surface buffers */
595 for (; i < surf->num_buff; i++) 595 for (; i < surf->num_buff; i++)