use capability to select gamma table size

merge-requests/244/head
Rolf Bensch 2020-06-05 22:07:19 +02:00
rodzic 16ddd3b972
commit 0118111c6f
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -566,7 +566,7 @@ send_gamma_table (pixma_t * s)
const uint8_t *lut = s->param->gamma_table;
uint8_t *data;
if (mp->generation == 1)
if (s->cfg->cap & PIXMA_CAP_GT_4096)
{
data = pixma_newcmd (&mp->cb, cmd_gamma, 4096 + 8, 0);
data[0] = (s->param->channels == 3) ? 0x10 : 0x01;

Wyświetl plik

@ -435,7 +435,7 @@ static int send_gamma_table (pixma_t * s)
const uint8_t *lut = s->param->gamma_table;
uint8_t *data;
if (mp->generation == 1)
if (s->cfg->cap & PIXMA_CAP_GT_4096)
{
data = pixma_newcmd (&mp->cb, cmd_gamma, 4096 + 8, 0);
data[0] = (s->param->channels == 3) ? 0x10 : 0x01;