rotation: modify code to use a rotation_list's resource in setting preferred angle... 90/235090/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 2 Jun 2020 06:03:03 +0000 (15:03 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 2 Jun 2020 06:03:03 +0000 (15:03 +0900)
Change-Id: I7eae449ae0cd2f9b3729355d816f558c95c41bf9

src/rotation/e_mod_rotation_wl.c

index 3029022..9052444 100644 (file)
@@ -469,7 +469,7 @@ _e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
 
              EINA_LIST_FOREACH(rot->rotation_list, l, res)
                {
-                  int ver = wl_resource_get_version(resource);
+                  int ver = wl_resource_get_version(res);
 
                   if ((ver >= 2) && ((tz_angle == TIZEN_ROTATION_ANGLE_0) || (tz_angle == TIZEN_ROTATION_ANGLE_180)))
                     {
@@ -479,7 +479,7 @@ _e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
                        window_h = ec->comp_data->shell.window.h;
                        EDBG(ec, "Send Change Rotation: angle %d for rendering preparation of portrait mode in floating w/h:%dx%d, shell.w/h:%dx%d, Resize:%dx%d -> %dx%d",
                             tz_angle, ec->w, ec->h, window_w, window_h, window_w, window_h, window_h, window_w);
-                       tizen_rotation_send_angle_change_with_resize(resource, tz_angle, serial, window_h, window_w);
+                       tizen_rotation_send_angle_change_with_resize(res, tz_angle, serial, window_h, window_w);
 
                        ec->e.state.rot.preferred_rot = TIZEN_ROTATION_ANGLE_TO_INT(angle);
                        return;