From: Bastian Dehn Date: Mon, 26 Feb 2024 19:15:26 +0000 (+0100) Subject: fix scan rgb X-Git-Tag: v1.0.0^2~171 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=675c8823754083f903b19490397185e6a249e238;p=sane-kds-s2000w-net.git fix scan rgb --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index e4c91ae..86a3f9d 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -130,6 +130,13 @@ SANE_Status _sane_kds_s2000w_net_get_parameters(SANE_Handle handle, debug_printf(ALL, "sane_kds_s2000w_net_get_parameters"); handler* h = (handler*) handle; + params->format = h->current_metadata->format; + params->last_frame = h->current_metadata->is_last; + params->bytes_per_line = h->current_metadata->bytes_per_line; + params->pixels_per_line = h->current_metadata->pixels_per_line; + params->lines = h->current_metadata->lines; + params->depth = h->current_metadata->depth; + if (!h->read_info->scan_started) return SANE_STATUS_GOOD;