// change the configured output resolution and the configured physical size(mm) of the output
if (output->configured_resolution_w != res_w)
{
- phys_w = (float)output->phys_width * (float)(res_w / output->w);
+ phys_w = (int)((float)output->phys_width * (float)(res_w / output->w));
output->configured_physical_w = phys_w;
output->configured_resolution_w = res_w;
}
if (output->configured_resolution_h != res_h)
{
- phys_h = (float)output->phys_height * (float)(res_h / output->h);
+ phys_h = (int)((float)output->phys_height * (float)(res_h / output->h));
output->configured_physical_h = phys_h;
output->configured_resolution_h = res_h;
}