Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!eric!echidna From: echidna@eric.ecr.mu.oz (Eric H. Echidna) Newsgroups: comp.graphics Subject: Another VOGLE patch for sun.c Keywords: Sorry about this guys... Message-ID: <7018@munnari.oz.au> Date: 7 Mar 91 05:31:57 GMT Sender: news@cs.mu.oz.au Lines: 25 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)