Lines Matching +full:24 +full:- +full:bit
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1991-1997 Søren Schmidt
46 if (VGLTextFont->BitmapArray != VGLFont) in VGLTextSetFontFile()
47 free (VGLTextFont->BitmapArray); in VGLTextSetFontFile()
55 VGLTextFont->Width = 8; in VGLTextSetFontFile()
56 VGLTextFont->Height = 8; in VGLTextSetFontFile()
57 VGLTextFont->BitmapArray = VGLFont; in VGLTextSetFontFile()
62 fread(&VGLTextFont->Width, 1 , 1, fd); in VGLTextSetFontFile()
63 fread(&VGLTextFont->Height, 1 , 1, fd); in VGLTextSetFontFile()
64 VGLTextFont->BitmapArray = in VGLTextSetFontFile()
65 (byte*)malloc(256*((VGLTextFont->Width + 7)/8)*VGLTextFont->Height); in VGLTextSetFontFile()
66 fread(VGLTextFont->BitmapArray, 1, in VGLTextSetFontFile()
67 (256*((VGLTextFont->Width + 7)/8)*VGLTextFont->Height), fd); in VGLTextSetFontFile()
77 int b, Bpc, Bpl, lin, bit, topbit; in VGLBitmapPutChar() local
79 Bpl = (VGLTextFont->Width + 7) / 8; in VGLBitmapPutChar()
80 Bpc = Bpl * VGLTextFont->Height; in VGLBitmapPutChar()
81 topbit = VGLTextFont->Width - 1; in VGLBitmapPutChar()
82 for(lin = 0; lin < VGLTextFont->Height; lin++) { in VGLBitmapPutChar()
83 for(bit = 0; bit < VGLTextFont->Width; bit++) { in VGLBitmapPutChar()
84 b = bit + (-VGLTextFont->Width & 7); in VGLBitmapPutChar()
85 if (VGLTextFont->BitmapArray[(ch*Bpc)+(lin*Bpl)+(b/8)]&(1<<(b%8))) in VGLBitmapPutChar()
88 VGLSetXY(Object, (x+topbit-bit), (y+lin), fgcol); in VGLBitmapPutChar()
91 VGLSetXY(Object, (x+lin), (y-topbit+bit), fgcol); in VGLBitmapPutChar()
94 VGLSetXY(Object, (x-topbit+bit), (y-lin), fgcol); in VGLBitmapPutChar()
97 VGLSetXY(Object, (x-lin), (y+topbit-bit), fgcol); in VGLBitmapPutChar()
100 VGLSetXY(Object, (x+lin+topbit-bit), (y+lin+bit), fgcol); in VGLBitmapPutChar()
106 VGLSetXY(Object, (x+topbit-bit), (y+lin), bgcol); in VGLBitmapPutChar()
109 VGLSetXY(Object, (x+lin), (y-topbit+bit), bgcol); in VGLBitmapPutChar()
112 VGLSetXY(Object, (x-topbit+bit), (y-lin), bgcol); in VGLBitmapPutChar()
115 VGLSetXY(Object, (x-lin), (y+topbit-bit), bgcol); in VGLBitmapPutChar()
118 VGLSetXY(Object, (x+lin+topbit-bit), (y+lin+bit), bgcol); in VGLBitmapPutChar()
134 VGLBitmapPutChar(Object, x+(pos*VGLTextFont->Width), y, in VGLBitmapString()
138 VGLBitmapPutChar(Object, x, y-(pos*VGLTextFont->Width), in VGLBitmapString()
142 VGLBitmapPutChar(Object, x-(pos*VGLTextFont->Width), y, in VGLBitmapString()
146 VGLBitmapPutChar(Object, x, y+(pos*VGLTextFont->Width), in VGLBitmapString()
150 VGLBitmapPutChar(Object, x+(pos*VGLTextFont->Width), in VGLBitmapString()
151 y-(pos*VGLTextFont->Width), in VGLBitmapString()
161 254,254,124,56,124,16,16,56,124,254,124,56,124,0,0,24,60,60,24,0,0,255,
163 153,195,255,15,7,15,125,204,204,204,120,60,102,102,102,60,24,126,24,63,
165 60,90,153,128,224,248,254,248,224,128,0,2,14,62,254,62,14,2,0,24,60,126,
166 24,24,126,60,24,102,102,102,102,102,0,102,0,127,219,219,123,27,27,27,0,
167 62,99,56,108,108,56,204,120,0,0,0,0,126,126,126,0,24,60,126,24,126,60,24,
168 255,24,60,126,24,24,24,24,0,24,24,24,24,126,60,24,0,0,24,12,254,12,24,0,
170 0,24,60,126,255,255,0,0,0,255,255,126,60,24,0,0,0,0,0,0,0,0,0,0,48,120,
172 124,192,120,12,248,48,0,0,198,204,24,48,102,198,0,56,108,56,118,220,204,
173 118,0,96,96,192,0,0,0,0,0,24,48,96,96,96,48,24,0,96,48,24,24,24,48,96,0,
175 252,0,0,0,0,0,0,0,0,0,48,48,0,6,12,24,48,96,192,128,0,124,198,206,222,246,
178 96,192,248,204,204,120,0,252,204,12,24,48,48,48,0,120,204,204,120,204,204,
179 120,0,120,204,204,124,12,24,112,0,0,48,48,0,0,48,48,0,0,48,48,0,0,48,48,
180 96,24,48,96,192,96,48,24,0,0,0,252,0,0,252,0,0,96,48,24,12,24,48,96,0,120,
181 204,12,24,48,0,48,0,124,198,222,222,222,192,120,0,48,120,204,204,252,204,
191 108,198,0,204,204,204,120,48,48,120,0,254,198,140,24,50,102,254,0,120,96,
192 96,96,96,96,120,0,192,96,48,24,12,6,2,0,120,24,24,24,24,24,120,0,16,56,
193 108,198,0,0,0,0,0,0,0,0,0,0,0,255,48,48,24,0,0,0,0,0,0,0,120,12,124,204,
200 220,118,102,96,240,0,0,0,124,192,120,12,248,0,16,48,124,48,48,52,24,0,0,
203 252,0,28,48,48,224,48,48,28,0,24,24,24,0,24,24,24,0,224,48,48,28,48,48,
205 60,126,255,126,24,0,170,85,85,170,170,85,85,170,68,68,68,68,31,4,4,4,124,
207 108,56,0,0,0,0,0,0,0,24,24,24,24,126,0,68,100,76,68,16,16,16,31,68,68,40,
208 16,31,4,4,4,24,24,24,24,248,0,0,0,0,0,0,0,248,24,24,24,0,0,0,0,31,24,24,
209 24,24,24,24,24,31,0,0,0,24,24,24,24,255,24,24,24,0,0,0,0,0,0,0,0,0,0,0,
210 0,0,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,0,0,24,24,24,
211 24,31,24,24,24,24,24,24,24,248,24,24,24,24,24,24,24,255,0,0,0,0,0,0,0,255,
212 24,24,24,24,24,24,24,24,24,24,24,0,12,48,96,24,12,126,0,0,48,12,6,24,48,
214 0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,48,0,48,48,120,120,48,0,0,0,16,124,192,
216 120,48,252,48,0,24,24,24,0,24,24,24,0,126,192,124,198,124,6,252,0,198,0,
220 6,24,62,0,0,0,30,2,14,2,30,0,0,0,24,48,0,0,0,0,0,0,0,0,204,204,204,204,
221 118,192,126,202,202,126,10,10,10,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,24,48,6,
224 0,48,96,192,204,120,0,24,12,48,120,204,252,204,0,96,192,48,120,204,252,
227 0,60,102,192,192,192,102,28,48,48,24,254,98,120,98,254,0,24,48,254,98,120,
229 48,48,48,120,0,24,48,120,48,48,48,120,0,120,132,120,48,48,48,120,0,204,
231 206,198,0,48,24,124,198,198,198,124,0,24,48,124,198,198,198,124,0,56,68,
234 204,204,204,252,0,24,48,204,204,204,204,252,0,120,132,204,204,204,204,252,
235 0,204,0,204,204,204,204,252,0,24,48,204,204,120,48,120,0,96,120,108,120,
236 96,96,96,0,120,204,196,220,198,198,220,192,48,24,120,12,124,204,118,0,24,
239 50,126,176,110,0,0,0,60,102,192,102,28,48,48,24,120,204,252,192,120,0,24,
241 192,120,0,96,48,0,112,48,48,120,0,24,48,0,112,48,48,120,0,112,136,0,112,
243 248,204,204,204,204,0,96,48,0,124,198,198,124,0,24,48,0,124,198,198,124,
245 198,124,0,0,0,24,0,126,0,24,0,0,0,6,124,222,246,124,192,96,48,0,204,204,
246 204,118,0,24,48,0,204,204,204,118,0,48,72,0,204,204,204,118,0,204,0,0,204,
247 204,204,118,0,24,48,204,204,204,124,12,248,224,120,108,102,108,120,224,