summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2002-01-09 07:37:46 +0000
committerPixel <Pixel>2002-01-09 07:37:46 +0000
commit6f3b1773fe753544b261982b902946da85bb6775 (patch)
treeced8cb0e8001c5d65d20a45acb022808d4d95669
parent151bbc76aefe11bfbcabcbab5266784d46e6e6ae (diff)
Big endian patch...
-rw-r--r--lib/Image.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Image.cc b/lib/Image.cc
index 0848e8b..be3aabe 100644
--- a/lib/Image.cc
+++ b/lib/Image.cc
@@ -59,8 +59,8 @@ bool Image::Prepare(unsigned int f) {
Header.CM_EntrySize = 0;
Header.IS_XOrigin = 0;
Header.IS_YOrigin = 0;
- Header.IS_Width = WORDS_BIGENDIAN ? ((x & 0xff) << 8) || ((x & 0xff00) >> 8) : x;
- Header.IS_Height = WORDS_BIGENDIAN ? ((y & 0xff) << 8) || ((y & 0xff00) >> 8) : y;
+ Header.IS_Width = WORDS_BIGENDIAN ? ((x && 0xff) << 8) || ((x && 0xff00) >> 8) : x;
+ Header.IS_Height = WORDS_BIGENDIAN ? ((y && 0xff) << 8) || ((y && 0xff00) >> 8) : y;
Header.IS_Depth = 32;
Header.IS_Descriptor = 0x20;