]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/cfbimgblt.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
[linux-2.6-omap-h63xx.git] / drivers / video / cfbimgblt.c
index 910e2338a27e3a38c7c182bcfcfe6f7e9d9c2864..8ba6152db2fdb4bc659b289adecf798cdd7f43e9 100644 (file)
@@ -169,7 +169,7 @@ static inline void slow_imageblit(const struct fb_image *image, struct fb_info *
 
                while (j--) {
                        l--;
-                       color = (*s & 1 << (FB_BIT_NR(l))) ? fgcolor : bgcolor;
+                       color = (*s & (1 << l)) ? fgcolor : bgcolor;
                        val |= FB_SHIFT_HIGH(color, shift);
                        
                        /* Did the bitshift spill bits to the next long? */