diff options
-rw-r--r-- | base/gdevdflt.c | 2 | ||||
-rw-r--r-- | devices/gdevbit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/gdevdflt.c b/base/gdevdflt.c index 337fb3f81..625152f45 100644 --- a/base/gdevdflt.c +++ b/base/gdevdflt.c | |||
@@ -1053,7 +1053,7 @@ gx_default_dev_spec_op(gx_device *pdev, int dev_spec_op, void *data, int size) | |||
1053 | case gxdso_copy_color_is_fast: | 1053 | case gxdso_copy_color_is_fast: |
1054 | return (dev_proc(pdev, copy_color) != gx_default_copy_color); | 1054 | return (dev_proc(pdev, copy_color) != gx_default_copy_color); |
1055 | case gxdso_is_encoding_direct: | 1055 | case gxdso_is_encoding_direct: |
1056 | if (pdev->color_info.comp_bits != 8) | 1056 | if (pdev->color_info.depth != 8 * pdev->color_info.num_components) |
1057 | return 0; | 1057 | return 0; |
1058 | return (dev_proc(pdev, encode_color) == gx_default_encode_color || | 1058 | return (dev_proc(pdev, encode_color) == gx_default_encode_color || |
1059 | dev_proc(pdev, encode_color) == gx_default_rgb_map_rgb_color); | 1059 | dev_proc(pdev, encode_color) == gx_default_rgb_map_rgb_color); |
diff --git a/devices/gdevbit.c b/devices/gdevbit.c index 13a89b18c..a52e59c00 100644 --- a/devices/gdevbit.c +++ b/devices/gdevbit.c | |||
@@ -888,7 +888,7 @@ bit_dev_spec_op(gx_device *pdev, int dso, void *ptr, int size) | |||
888 | switch (dso) | 888 | switch (dso) |
889 | { | 889 | { |
890 | case gxdso_is_encoding_direct: | 890 | case gxdso_is_encoding_direct: |
891 | if (pdev->color_info.comp_bits != 8) | 891 | if (pdev->color_info.depth != 8 * pdev->color_info.num_components) |
892 | return 0; | 892 | return 0; |
893 | return (dev_proc(pdev, encode_color) == bitrgb_rgb_map_rgb_color || | 893 | return (dev_proc(pdev, encode_color) == bitrgb_rgb_map_rgb_color || |
894 | dev_proc(pdev, encode_color) == bit_map_cmyk_color); | 894 | dev_proc(pdev, encode_color) == bit_map_cmyk_color); |