backport cups-prioritize-print-color-mode.patch from upstream
This commit is contained in:
parent
68523cbe08
commit
3beb10c19a
@ -1,15 +1,16 @@
|
||||
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
|
||||
index 5965e38..94a125a 100644
|
||||
index 167e1df..6c05735 100644
|
||||
--- a/cups/ppd-cache.c
|
||||
+++ b/cups/ppd-cache.c
|
||||
@@ -3735,8 +3735,8 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
|
||||
*/
|
||||
@@ -3790,6 +3790,11 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
|
||||
PRINTF_COLOROPTION("RGB", _("Color"), CUPS_CSPACE_SRGB, 8)
|
||||
|
||||
if ((attr = ippFindAttribute(response, "urf-supported", IPP_TAG_KEYWORD)) == NULL)
|
||||
- if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL)
|
||||
- if ((attr = ippFindAttribute(response, "print-color-mode-supported", IPP_TAG_KEYWORD)) == NULL)
|
||||
+ if ((attr = ippFindAttribute(response, "print-color-mode-supported", IPP_TAG_KEYWORD)) == NULL)
|
||||
+ if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL)
|
||||
attr = ippFindAttribute(response, "output-mode-supported", IPP_TAG_KEYWORD);
|
||||
|
||||
if (attr)
|
||||
default_color = "RGB";
|
||||
+
|
||||
+ // Apparently some printers only advertise color support, so make sure
|
||||
+ // we also do grayscale for these printers...
|
||||
+ if (!ippContainsString(attr, "sgray_8") && !ippContainsString(attr, "black_1") && !ippContainsString(attr, "black_8"))
|
||||
+ PRINTF_COLOROPTION("Gray", _("GrayScale"), CUPS_CSPACE_SW, 8)
|
||||
}
|
||||
else if (!strcasecmp(keyword, "adobe-rgb_16") || !strcmp(keyword, "ADOBERGB48") || !strcmp(keyword, "ADOBERGB24-48"))
|
||||
{
|
||||
|
@ -767,6 +767,7 @@ rm -f %{cups_serverbin}/backend/smb
|
||||
%changelog
|
||||
* Mon Nov 02 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3-16
|
||||
- backport cups-ipptool-mdns-uri.patch from upstream
|
||||
- backport cups-prioritize-print-color-mode.patch from upstream
|
||||
|
||||
* Thu Sep 03 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3-14
|
||||
- revert previous commit - resolved doesn't work with avahi due missing link
|
||||
|
Loading…
Reference in New Issue
Block a user