nanogui: Microwindows 0.88pre9 released
Subject:
Re: Microwindows 0.88pre9 released
From:
Kaben Nanlohy ####@####.####
Date:
16 Jun 2000 03:01:16 -0000
Message-Id: <Pine.LNX.4.10.10006151933580.20259-100000@aaron2.frye.com>
Hullo... Just tried compiling 0.88pre9, and caught something I'd
forgotten about in 0.88pre8. Namely, setting the following in
microwin/src/config prior to compiling for X11/Linux (to specify pixels as
packed 8 bits 3/3/2 truecolor):
SCREEN_PIXTYPE = MWPF_TRUECOLOR332
causes compiler complaints:
microwin/src/engine/devdraw.c: In function `GdTranslateArea':
microwin/src/engine/devdraw.c:1570: warning: implicit declaration of
function `PIXELVALTOCOLORVAL'
microwin/src/lib/libmwengine.a(devdraw.o): In function `GdTranslateArea':
microwin/src/engine/devdraw.c:1570: undefined reference to
`PIXELVALTOCOLORVAL'
PIXELVALTOCOLORVAL is used in some places, PIXELTOCOLORVAL in
others. Hence the diff to show #defines of both macros to mean the same
thing:
--- microwin/src/include/device.h Thu Jun 15 19:32:14 2000
+++ microwin/src/include/device.h.orig Thu Jun 15 19:30:48 2000
@@ -298,7 +298,6 @@
#define RGB2PIXEL(r,g,b) RGB2PIXEL888(r,g,b)
#define COLORVALTOPIXELVAL(c) COLOR2PIXEL888(c)
#define PIXELVALTOCOLORVAL(p) PIXEL888TOCOLORVAL(p)
-#define PIXELTOCOLORVAL(p) PIXEL888TOCOLORVAL(p)
#define PIXEL2RED(p) PIXEL888RED(p)
#define PIXEL2GREEN(p) PIXEL888GREEN(p)
#define PIXEL2BLUE(p) PIXEL888BLUE(p)
@@ -307,7 +306,6 @@
#if MWPIXEL_FORMAT == MWPF_TRUECOLOR565
#define RGB2PIXEL(r,g,b) RGB2PIXEL565(r,g,b)
#define COLORVALTOPIXELVAL(c) COLOR2PIXEL565(c)
-#define PIXELVALTOCOLORVAL(p) PIXEL565TOCOLORVAL(p)
#define PIXELTOCOLORVAL(p) PIXEL565TOCOLORVAL(p)
#define PIXEL2RED(p) PIXEL565RED(p)
#define PIXEL2GREEN(p) PIXEL565GREEN(p)
@@ -317,7 +315,6 @@
#if MWPIXEL_FORMAT == MWPF_TRUECOLOR332
#define RGB2PIXEL(r,g,b) RGB2PIXEL332(r,g,b)
#define COLORVALTOPIXELVAL(c) COLOR2PIXEL332(c)
-#define PIXELVALTOCOLORVAL(p) PIXEL332TOCOLORVAL(p)
#define PIXELTOCOLORVAL(p) PIXEL332TOCOLORVAL(p)
#define PIXEL2RED(p) PIXEL332RED(p)
#define PIXEL2GREEN(p) PIXEL332GREEN(p)
I assume that was just a typo, and that I'm not breaking anything.
But let me know if I have. Thanks -- Kaben.