fix shading coefficient computing at dpi higher than sensor's one

merge-requests/1/head
Stphane Voltz 2009-10-19 06:33:52 +02:00
rodzic e0e9d639fd
commit 6668b38d2c
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -3044,9 +3044,17 @@ genesys_send_shading_coefficient (Genesys_Device * dev)
cmat[0] = 0;
cmat[1] = 1;
cmat[2] = 2;
if(dev->settings.xres>dev->sensor.optical_res)
{
res=1;
}
else
{
res=dev->sensor.optical_res/dev->settings.xres;
}
compute_planar_coefficients (dev,
shading_data,
dev->sensor.optical_res/dev->settings.xres,
res,
pixels_per_line,
words_per_color,
channels,