X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbarcode.c;h=b15784814e7f82e0a7b13e8feab823562ec04adc;hp=f6b19eb8cabd993feb7674120e40a9b6441f5147;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=2c902d6065f9856adf31e8540a94f1e42e68e905 diff --git a/hacks/barcode.c b/hacks/barcode.c index f6b19eb8..b1578481 100644 --- a/hacks/barcode.c +++ b/hacks/barcode.c @@ -67,7 +67,7 @@ typedef struct int width; int height; int widthBytes; - unsigned char *buf; + char *buf; } Bitmap; @@ -594,7 +594,7 @@ static unsigned char font5x8Buf[] = 0x0f, 0x0f, 0x0f, 0x00 }; -static Bitmap font5x8 = { 8, 1024, 1, font5x8Buf }; +static Bitmap font5x8 = { 8, 1024, 1, (char *) font5x8Buf }; /* draw the given 5x8 character at the given coordinates */ void bitmapDrawChar5x8 (Bitmap *b, int x, int y, char c) @@ -1529,6 +1529,8 @@ static void setup (void) theImage = XCreateImage(display, visual, 1, XYBitmap, 0, theBitmap->buf, theBitmap->width, theBitmap->height, 8, theBitmap->widthBytes); + theImage->bitmap_bit_order = LSBFirst; + theImage->byte_order = LSBFirst; }