Lines Matching refs:color

50 VGLSetXY(VGLBitmap *object, int x, int y, u_long color)  in VGLSetXY()  argument
58 VGLSetXY(&VGLVDisplay, x, y, color); in VGLSetXY()
76 color = htole32(color); in VGLSetXY()
79 memcpy(&object->Bitmap[offset], &color, 1); in VGLSetXY()
82 memcpy(&object->Bitmap[offset], &color, 2); in VGLSetXY()
85 memcpy(&object->Bitmap[offset], &color, 3); in VGLSetXY()
88 memcpy(&object->Bitmap[offset], &color, 4); in VGLSetXY()
94 color = htole32(color); in VGLSetXY()
97 memcpy(&object->Bitmap[soffset], &color, 1); in VGLSetXY()
99 memcpy(&object->Bitmap[soffset], (byte *)&color + 1, 2); in VGLSetXY()
102 memcpy(&object->Bitmap[soffset], &color, 2); in VGLSetXY()
104 memcpy(&object->Bitmap[soffset], (byte *)&color + 2, 1); in VGLSetXY()
107 memcpy(&object->Bitmap[soffset], &color, 3); in VGLSetXY()
114 object->Bitmap[(unsigned)(VGLAdpInfo.va_line_width*y)+(x/4)] = ((byte)color); in VGLSetXY()
123 outb(0x3ce, 0x00); outb(0x3cf, (byte)color & 0x0f); /* set/reset */ in VGLSetXY()
126 object->Bitmap[offset] |= (byte)color; in VGLSetXY()
137 u_long color; in VGLGetXY() local
150 memcpy(&color, &object->Bitmap[offset], 1); in VGLGetXY()
151 return le32toh(color) & 0xff; in VGLGetXY()
153 memcpy(&color, &object->Bitmap[offset], 2); in VGLGetXY()
154 return le32toh(color) & 0xffff; in VGLGetXY()
156 memcpy(&color, &object->Bitmap[offset], 3); in VGLGetXY()
157 return le32toh(color) & 0xffffff; in VGLGetXY()
159 memcpy(&color, &object->Bitmap[offset], 4); in VGLGetXY()
160 return le32toh(color); in VGLGetXY()
174 plot(VGLBitmap * object, int x, int y, int flag, u_long color) in plot() argument
178 VGLSetXY(object, y, x, color); in plot()
180 VGLSetXY(object, x, y, color); in plot()
185 VGLLine(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLLine() argument
225 plot(object, x, y, reverse, color); in VGLLine()
229 plot(object, x1, y1, reverse, color); /* plot first two points */ in VGLLine()
241 plot(object, x, y, reverse, color); in VGLLine()
242 plot(object, ++x, y, reverse, color); in VGLLine()
244 plot(object, x1, y1, reverse, color); in VGLLine()
245 plot(object, --x1, y1, reverse, color); in VGLLine()
250 plot(object, x, y, reverse, color); in VGLLine()
252 color); in VGLLine()
254 plot(object, x1, y1, reverse, color); in VGLLine()
256 color); in VGLLine()
259 plot(object, x, y += step, reverse, color); in VGLLine()
260 plot(object, ++x, y, reverse, color); in VGLLine()
263 color); in VGLLine()
264 plot(object, --x1, y1, reverse, color); in VGLLine()
273 plot(object, ++x, y, reverse, color); /* pattern 1 */ in VGLLine()
275 plot(object, ++x, y, reverse, color); in VGLLine()
277 plot(object, --x1, y1, reverse, color); in VGLLine()
280 plot(object, ++x, y, reverse, color); /* pattern 2 */ in VGLLine()
282 plot(object, ++x, y += step, reverse, color); in VGLLine()
284 plot(object, --x1, y1, reverse, color); in VGLLine()
287 plot(object, ++x, y += step, reverse, color); in VGLLine()
289 plot(object, ++x, y, reverse, color); in VGLLine()
291 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
306 plot(object, x, y += step, reverse, color); in VGLLine()
307 plot(object, ++x, y += step, reverse, color); in VGLLine()
309 plot(object, x1, y1 -= step, reverse, color); in VGLLine()
310 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
315 plot(object, x, y, reverse, color); in VGLLine()
317 color); in VGLLine()
320 plot(object, x1, y1, reverse, color); in VGLLine()
322 color); in VGLLine()
325 plot(object, x, y += step, reverse, color); in VGLLine()
326 plot(object, ++x, y, reverse, color); in VGLLine()
328 plot(object, x1, y1 -= step, reverse, color); in VGLLine()
329 plot(object, --x1, y1, reverse, color); in VGLLine()
337 plot(object, ++x, y += step, reverse, color); /* pattern 4 */ in VGLLine()
340 color); in VGLLine()
343 color); in VGLLine()
346 plot(object, ++x, y, reverse, color); /* pattern 2 */ in VGLLine()
348 plot(object, ++x, y += step, reverse, color); in VGLLine()
350 plot(object, --x1, y1, reverse, color); in VGLLine()
353 plot(object, ++x, y += step, reverse, color); in VGLLine()
355 plot(object, ++x, y, reverse, color); in VGLLine()
358 plot(object, --x1, y1 -= step, reverse, color); in VGLLine()
360 plot(object, --x1, y1, reverse, color); in VGLLine()
369 VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLBox() argument
371 VGLLine(object, x1, y1, x2, y1, color); in VGLBox()
372 VGLLine(object, x2, y1, x2, y2, color); in VGLBox()
373 VGLLine(object, x2, y2, x1, y2, color); in VGLBox()
374 VGLLine(object, x1, y2, x1, y1, color); in VGLBox()
378 VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) in VGLFilledBox() argument
382 for (y=y1; y<=y2; y++) VGLLine(object, x1, y, x2, y, color); in VGLFilledBox()
386 set4pixels(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) in set4pixels() argument
389 VGLSetXY(object, xc+x, yc+y, color); in set4pixels()
390 VGLSetXY(object, xc-x, yc+y, color); in set4pixels()
392 VGLSetXY(object, xc+x, yc-y, color); in set4pixels()
393 VGLSetXY(object, xc-x, yc-y, color); in set4pixels()
397 VGLSetXY(object, xc, yc+y, color); in set4pixels()
399 VGLSetXY(object, xc, yc-y, color); in set4pixels()
404 VGLEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) in VGLEllipse() argument
410 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
418 set4pixels(object, x, y, xc, yc, color); in VGLEllipse()
427 set2lines(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) in set2lines() argument
430 VGLLine(object, xc+x, yc+y, xc-x, yc+y, color); in set2lines()
432 VGLLine(object, xc+x, yc-y, xc-x, yc-y, color); in set2lines()
435 VGLLine(object, xc, yc+y, xc, yc-y, color); in set2lines()
440 VGLFilledEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) in VGLFilledEllipse() argument
446 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
454 set2lines(object, x, y, xc, yc, color); in VGLFilledEllipse()
463 VGLClear(VGLBitmap *object, u_long color) in VGLClear() argument
471 VGLClear(&VGLVDisplay, color); in VGLClear()
493 color = htole32(color); in VGLClear()
495 bcopy(&color, src.Bitmap + i * object->PixelBytes, object->PixelBytes); in VGLClear()
505 memset(object->Bitmap, (byte)color, VGLAdpInfo.va_line_width*object->VYsize); in VGLClear()
521 memset(object->Bitmap, (byte)color, len); in VGLClear()
630 VGLSetPaletteIndex(byte color, byte red, byte green, byte blue) in VGLSetPaletteIndex() argument
634 VGLSavePaletteRed[color] = red; in VGLSetPaletteIndex()
635 VGLSavePaletteGreen[color] = green; in VGLSetPaletteIndex()
636 VGLSavePaletteBlue[color] = blue; in VGLSetPaletteIndex()
640 outb(0x3C8, color); in VGLSetPaletteIndex()
653 VGLSetBorder(byte color) in VGLSetBorder() argument
659 outb(0x3C0,0x11); outb(0x3C0, color); in VGLSetBorder()
662 VGLBorderColor = color; in VGLSetBorder()