}
EINTERN Eina_Bool
-e_hwc_windows_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc, Eina_Rectangle *rect)
+e_hwc_windows_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc)
{
+ Eina_Rectangle rect;
+
EINA_SAFETY_ON_NULL_RETURN_VAL(hwc, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(src_hwc, EINA_FALSE);
- EINA_SAFETY_ON_NULL_RETURN_VAL(rect, EINA_FALSE);
- EHWSINF("e_hwc_windows_mirror_set. rect(%d,%d)(%d,%d)",
- NULL, hwc, rect->x, rect->y, rect->w, rect->h);
+ EHWSINF("e_hwc_windows_mirror_set src_hwc:%p", NULL, hwc, src_hwc);
- hwc->mirror_src_tsurface = NULL;
+ rect.x = hwc->output->config.geom.x;
+ rect.y = hwc->output->config.geom.y;
+ rect.w = hwc->output->config.geom.w;
+ rect.h = hwc->output->config.geom.h;
/* set the zoom to the hwc. */
- if (!e_hwc_windows_zoom_set(hwc, rect))
+ if (!e_hwc_windows_zoom_set(hwc, &rect))
{
EHWSERR("e_hwc_windows_zoom_set failed.", hwc);
return EINA_FALSE;
/* add mirror_src to the hwc*/
hwc->mirror_src_hwc = src_hwc;
+ hwc->mirror_src_tsurface = NULL;
/* add mirror_dst list to the src_hwc */
src_hwc->mirror_dst_hwc = eina_list_append(src_hwc->mirror_dst_hwc, hwc);
E_API void e_hwc_windows_debug_dump_start(void);
E_API void e_hwc_windows_debug_dump_stop(void);
-EINTERN Eina_Bool e_hwc_windows_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc, Eina_Rectangle *rect);
+EINTERN Eina_Bool e_hwc_windows_mirror_set(E_Hwc *hwc, E_Hwc *src_hwc);
EINTERN void e_hwc_windows_mirror_unset(E_Hwc *hwc);
EINTERN Eina_Bool e_hwc_windows_present_sync(E_Hwc *hwc);
}
else
{
- /* set the target_buffer of the src_hwc to the target_buffer of the dst_hwc with zoom rect */
- if (!e_hwc_windows_mirror_set(output->hwc, src_output->hwc, &output->zoom_conf.rect))
+ if (!e_hwc_windows_mirror_set(output->hwc, src_output->hwc))
{
EOERR("e_hwc_windows_mirror_set failed.", output);
return EINA_FALSE;