E_CONFIG_VAL(D, T, indicator_plug_name, STR);
E_CONFIG_VAL(D, T, launchscreen_without_timer, UCHAR);
E_CONFIG_VAL(D, T, log_type, INT);
+ E_CONFIG_VAL(D, T, use_pp_zoom, UCHAR);
}
static Eina_Bool
E_CONFIG_LIMIT(e_config->save_win_buffer, 0, 1);
E_CONFIG_LIMIT(e_config->launchscreen_without_timer, 0, 1);
E_CONFIG_LIMIT(e_config->log_type, 0, 255);
+ E_CONFIG_LIMIT(e_config->use_pp_zoom, 0, 1);
}
E_API int
{
E_Client *ec;
Eina_List *l;
-#ifdef HAVE_ZOOM_PP
E_Zone *zone = NULL;
E_Output *eout = NULL;
-#endif
E_OBJECT_CHECK(desk);
E_OBJECT_TYPE_CHECK(desk, E_DESK_TYPE);
+ if (e_config->use_pp_zoom)
+ {
+ if (e_comp_screen_pp_support())
+ {
+ zone = desk->zone;
+ eout = e_output_find(zone->output_id);
+ if (!eout)
+ {
+ ERR("e_desk_zoom_set: fail get eout");
+ return;
+ }
+ if (!e_output_zoom_set(eout, zoomx, zoomy, cx, cy))
+ ERR("e_desk_zoom_set: fail zoom set");
+ else
+ DBG("e_desk_zoom_set: zoomx:%f, zoomy:%f, x:%d, y:%d", zoomx, zoomy, cx, cy);
+
+ return;
+ }
+ }
+
if (e_config->use_desk_smart_obj)
{
E_DESK_SMART_DATA_GET_OR_RETURN(desk->smart_obj, sd);
_e_desk_util_comp_hwc_disable_set(EINA_TRUE);
}
}
-#ifdef HAVE_ZOOM_PP
- else
- {
- /* use PP */
- zone = desk->zone;
- eout = e_output_find(zone->output_id);
- if (!eout)
- {
- ERR("e_desk_zoom_set: fail get eout");
- return;
- }
- if (!e_output_zoom_set(eout, zoomx, zoomy, cx, cy))
- ERR("e_desk_zoom_set: fail zoom set");
- else
- DBG("e_desk_zoom_set: zoomx:%f, zoomy:%f, x:%d, y:%d", zoomx, zoomy, cx, cy);
- }
-#endif
}
E_API void
{
E_Client *ec;
Eina_List *l;
-#ifdef HAVE_ZOOM_PP
E_Zone *zone = NULL;
E_Output *eout = NULL;
-#endif
E_OBJECT_CHECK(desk);
E_OBJECT_TYPE_CHECK(desk, E_DESK_TYPE);
+ if (e_config->use_pp_zoom)
+ {
+ if (e_comp_screen_pp_support())
+ {
+ zone = desk->zone;
+ eout = e_output_find(zone->output_id);
+ if (!eout)
+ {
+ ERR("e_desk_zoom_unset: fail get eout");
+ return;
+ }
+
+ e_output_zoom_unset(eout);
+ DBG("e_desk_zoom_unset");
+
+ return;
+ }
+ }
+
if (e_config->use_desk_smart_obj)
{
E_DESK_SMART_DATA_GET_OR_RETURN(desk->smart_obj, sd);
/* FIXME TEMP enable hwc */
_e_desk_util_comp_hwc_disable_set(EINA_FALSE);
}
-#ifdef HAVE_ZOOM_PP
- else
- {
- /* use PP */
- zone = desk->zone;
- eout = e_output_find(zone->output_id);
- if (!eout)
- {
- ERR("e_desk_zoom_set: fail get eout");
- return;
- }
-
- e_output_zoom_unset(eout);
- DBG("e_desk_zoom_unset");
- }
-#endif
}
E_API void
#include "e.h"
-#ifdef HAVE_ZOOM_PP
static E_Client *
_e_output_zoom_top_visible_ec_get()
{
_e_output_zoom_rotate(output);
}
}
-#endif
static void
_e_output_cb_output_change(tdm_output *toutput,
return NULL;
}
-#ifdef HAVE_ZOOM_PP
static Eina_Bool
_e_output_zoom_touch_set(E_Output *eout, Eina_Bool set)
{
_e_output_render_update(eout);
DBG("e_output_zoom_unset: output:%s", eout->id);
-}
-#endif
+}
\ No newline at end of file
int max_w, max_h;
int preferred_align;
} cursor_available;
-#ifdef HAVE_ZOOM_PP
+
Eina_Bool zoom_set;
struct
{
int current_angle;
Eina_Rectangle rect;
} zoom_conf;
-#endif
};
EINTERN Eina_Bool e_output_init(void);
E_API Eina_Bool e_output_is_fb_full_compositing(E_Output *output);
E_API E_Plane * e_output_fb_target_get(E_Output *output);
E_API E_Plane * e_output_plane_get_by_zpos(E_Output *output, int zpos);
-
-#ifdef HAVE_ZOOM_PP
EINTERN Eina_Bool e_output_zoom_set(E_Output *eout, double zoomx, double zoomy, int cx, int cy);
EINTERN void e_output_zoom_unset(E_Output *eout);
-#endif
#endif
#endif