[comp.graphics] Another VOGLE patch for sun.c

echidna@eric.ecr.mu.oz (Eric H. Echidna) (03/07/91)

	Due to a mix up an experimental version of the file
	drivers/sun.c found it's way into the VOGLE distribution.
	This is the driver for sunview. The patch is almost trivial
	- here it is:

*** ../drivers/sun.c	Thu Mar  7 15:15:46 1991
--- /sa/dist/vogle/drivers/sun.c	Thu Feb  7 13:39:53 1991
***************
*** 24,30 ****
  #define	STDFONTDIR	"/usr/lib/fonts/fixedwidthfonts/"
  
  #define MIN(x,y)	((x) < (y) ? (x) : (y))
! #define COL(c)		((usememory) ? (c) : (c) | ((c << 4)))
  
  #define OP_WHITE	(PIX_SRC | PIX_COLOR(COL(7)) | PIX_DONTCLIP)
  #define OP_BLACK	(PIX_SRC | PIX_COLOR(COL(0)) | PIX_DONTCLIP)
--- 24,30 ----
  #define	STDFONTDIR	"/usr/lib/fonts/fixedwidthfonts/"
  
  #define MIN(x,y)	((x) < (y) ? (x) : (y))
! #define COL(c)		((usememory) ? (c << 8) : (c << 8) | ((c << 4) << 8))
  
  #define OP_WHITE	(PIX_SRC | PIX_COLOR(COL(7)) | PIX_DONTCLIP)
  #define OP_BLACK	(PIX_SRC | PIX_COLOR(COL(0)) | PIX_DONTCLIP)