summaryrefslogtreecommitdiff
path: root/Graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics.c')
-rw-r--r--Graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics.c b/Graphics.c
index 39fea11..e8e7897 100644
--- a/Graphics.c
+++ b/Graphics.c
@@ -69,7 +69,7 @@ from The Open Group.
#define GetBit(image, x, y)\
((bit)((*(image->data + (x) / 8 + (y) * image->bytes_per_line) &\
- (1 << ((x) % 8))) ? 1 : 0))
+ (1 << ((x) & 7))) ? 1 : 0))
#if 0
bit