summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-11-25 14:33:12 +0000
committerRobin Watts <robin.watts@artifex.com>2013-11-25 17:44:13 +0000
commit7b3a65aab20feac334cac8e5935ba5cbe310ac69 (patch)
tree150805793569b979efb8b6812062b20701b2160c
parentb81962611a292e1b2c5306f3d5cdfea832715169 (diff)
Fix previous commit; align_bitmap_mod is in bytes not bits.
Correct the calculations in the previous commit.
-rw-r--r--gs/base/gsiparam.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gs/base/gsiparam.h b/gs/base/gsiparam.h
index 3a3643cf6..87078bef4 100644
--- a/gs/base/gsiparam.h
+++ b/gs/base/gsiparam.h
@@ -22,6 +22,7 @@
22#include "gsccolor.h" /* for GS_CLIENT_COLOR_MAX_COMPONENTS */ 22#include "gsccolor.h" /* for GS_CLIENT_COLOR_MAX_COMPONENTS */
23#include "gsmatrix.h" 23#include "gsmatrix.h"
24#include "gsstype.h" /* for extern_st */ 24#include "gsstype.h" /* for extern_st */
25#include "gxbitmap.h"
25 26
26/* ---------------- Image parameters ---------------- */ 27/* ---------------- Image parameters ---------------- */
27 28
@@ -309,8 +310,8 @@ void gs_image_t_init_mask_adjust(gs_image_t * pim, bool write_1s,
309 * are guaranteed that align_bitmap_mod is a multiple of 16. 310 * are guaranteed that align_bitmap_mod is a multiple of 16.
310 */ 311 */
311#define LAND_BITS_MIN 16 312#define LAND_BITS_MIN 16
312#if LAND_BITS_MIN < align_bitmap_mod 313#if LAND_BITS_MIN < (align_bitmap_mod*8)
313#define LAND_BITS align_bitmap_mod 314#define LAND_BITS (align_bitmap_mod*8)
314#else 315#else
315#define LAND_BITS LAND_BITS_MIN 316#define LAND_BITS LAND_BITS_MIN
316#endif 317#endif