int phys_w, phys_h;
int ratio_w, ratio_h;
+ phys_w = output->phys_width;
+ phys_h = output->phys_height;
+
if (e_config->configured_output_resolution.use)
{
- // change the configured output resolution and the configured physical size(mm) of the output
- if (output->configured_resolution_w != res_w)
+ // change the configured physical size(mm) of the output
+ if (output->w != res_w)
{
ratio_w = res_w / output->w;
phys_w = (int)((float)output->phys_width * (float)ratio_w);
- output->configured_physical_w = phys_w;
- output->configured_resolution_w = res_w;
}
- if (output->configured_resolution_h != res_h)
+ if (output->h != res_h)
{
ratio_h = res_h / output->h;
phys_h = (int)((float)output->phys_height * (float)ratio_h);
- output->configured_physical_h = phys_h;
- output->configured_resolution_h = res_h;
}
- phys_w = output->configured_physical_w;
- phys_h = output->configured_physical_h;
-
ELOGF("COMP_WL", "\tSend Configured Output (pid:%d)", NULL, pid);
}
- else
- {
- phys_w = output->phys_width;
- phys_h = output->phys_height;
- }
ELOGF("COMP_WL", "\t Output Resolution: res(%d, %d) phy_size(%d, %d) (pid:%d).",
NULL, res_w, res_h, phys_w, phys_h, pid);
Eina_List *l = NULL, *l2 = NULL;
struct wl_resource *resource = NULL;
+ if (!e_config->configured_output_resolution.use) return EINA_TRUE;
+
EINA_SAFETY_ON_TRUE_RETURN_VAL(pid <= 0, EINA_FALSE);
EINA_SAFETY_ON_TRUE_RETURN_VAL(w < 0, EINA_FALSE);
EINA_SAFETY_ON_TRUE_RETURN_VAL(h < 0, EINA_FALSE);
{
wl_client_get_credentials(wl_resource_get_client(resource), &output_pid, NULL, NULL);
if (output_pid != pid) continue;
- if (output->configured_resolution_w == w && output->configured_resolution_h == h) continue;
ELOGF("COMP_WL", "\tSend Configured Output AGAIN ~!!!!! (pid:%d)", NULL, pid);