Lines Matching +full:0 +full:x01010001
38 static byte mask[8] = {0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x03, 0x01};
39 static int color2bit[16] = {0x00000000, 0x00000001, 0x00000100, 0x00000101,
40 0x00010000, 0x00010001, 0x00010100, 0x00010101,
41 0x01000000, 0x01000001, 0x01000100, 0x01000101,
42 0x01010000, 0x01010001, 0x01010100, 0x01010101};
49 unsigned int word = 0; in WriteVerticalLine()
56 start_offset = (x & 0x07); in WriteVerticalLine()
57 end_offset = (x + width) & 0x07; in WriteVerticalLine()
61 VGLPlane[0] = VGLBuf; in WriteVerticalLine()
62 VGLPlane[1] = VGLPlane[0] + bwidth; in WriteVerticalLine()
65 pos = 0; in WriteVerticalLine()
66 planepos = 0; in WriteVerticalLine()
69 word = 0; in WriteVerticalLine()
71 word = (word<<1) | color2bit[line[pos++]&0x0f]; in WriteVerticalLine()
72 VGLPlane[0][planepos] = word; in WriteVerticalLine()
82 VGLPlane[0][planepos] = word; in WriteVerticalLine()
87 outb(0x3ce, 0x01); outb(0x3cf, 0x00); /* set/reset enable */ in WriteVerticalLine()
88 outb(0x3ce, 0x08); outb(0x3cf, 0xff); /* bit mask */ in WriteVerticalLine()
89 for (i=0; i<4; i++) { in WriteVerticalLine()
90 outb(0x3c4, 0x02); in WriteVerticalLine()
91 outb(0x3c5, 0x01<<i); in WriteVerticalLine()
92 outb(0x3ce, 0x04); in WriteVerticalLine()
93 outb(0x3cf, i); in WriteVerticalLine()
99 VGLPlane[i][0] |= dst->Bitmap[pos] & ~mask[start_offset]; in WriteVerticalLine()
100 bcopy(&VGLPlane[i][0], dst->Bitmap + pos, bwidth); in WriteVerticalLine()
108 VGLPlane[i][0] |= dst->Bitmap[offset] & ~mask[start_offset]; in WriteVerticalLine()
114 if (last <= 0) in WriteVerticalLine()
123 for (i=0; i<4; i++) { in WriteVerticalLine()
124 outb(0x3c4, 0x02); in WriteVerticalLine()
125 outb(0x3c5, 0x01 << ((x + i)%4)); in WriteVerticalLine()
126 for (planepos=0, pos=i; pos<width; planepos++, pos+=4) in WriteVerticalLine()
138 while (width > 0) { in WriteVerticalLine()
167 mousemerge = 0; in __VGLBitmapCopy()
168 if (hight < 0) { in __VGLBitmapCopy()
178 if (srcx < 0) { in __VGLBitmapCopy()
179 width=width+srcx; dstx-=srcx; srcx=0; in __VGLBitmapCopy()
181 if (srcy < 0) { in __VGLBitmapCopy()
182 hight=hight+srcy; dsty-=srcy; srcy=0; in __VGLBitmapCopy()
184 if (dstx < 0) { in __VGLBitmapCopy()
185 width=width+dstx; srcx-=dstx; dstx=0; in __VGLBitmapCopy()
187 if (dsty < 0) { in __VGLBitmapCopy()
188 hight=hight+dsty; srcy-=dsty; dsty=0; in __VGLBitmapCopy()
198 if (width < 0 || hight < 0) in __VGLBitmapCopy()
201 yextra = 0; in __VGLBitmapCopy()
218 return 0; in __VGLBitmapCopy()
227 if (hight < 0) in VGLBitmapCopy()
238 if (error != 0) in VGLBitmapCopy()
258 if (xsize < 0 || ysize < 0) in VGLBitmapCreate()
268 object->Xorigin = 0; in VGLBitmapCreate()
269 object->Yorigin = 0; in VGLBitmapCreate()
289 return 0; in VGLBitmapAllocateBits()
300 if (srcpb <= 0) in VGLBitmapCvt()
309 for (srcpos = dstpos = 0; srcpos < size; srcpos++) { in VGLBitmapCvt()
311 for (i = 0; i < pb; i++, color >>= 8) in VGLBitmapCvt()