return hwc->norender;
}
+#define USE_LARGE_ON_CANVAS 1
+
EINTERN void
e_hwc_canvas_size_get(E_Hwc *hwc, int *w, int *h)
{
- E_Hwc_Window_Target *target_hwc_window;
- E_Canvas *canvas;
-
if (!hwc) return;
EINA_SAFETY_ON_NULL_RETURN(w);
*w = 0;
*h = 0;
+#if USE_LARGE_ON_CANVAS
+ ecore_evas_geometry_get(e_comp_ee_get(), NULL, NULL, w, h);
+#else
+ E_Hwc_Window_Target *target_hwc_window;
+ E_Canvas *canvas;
+
EINA_SAFETY_ON_NULL_RETURN(hwc->root_target_hwc_window);
target_hwc_window = hwc->root_target_hwc_window;
EINA_SAFETY_ON_NULL_RETURN(target_hwc_window->canvas);
canvas = target_hwc_window->canvas;
e_canvas_size_get(canvas, w, h);
+#endif
}
static const char *