nanogui: Kaffe port


Previous by date: 19 Jun 2000 16:57:28 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Next by date: 19 Jun 2000 16:57:28 -0000 Re: GrAreaCopy...., Simon Wood
Previous in thread: 19 Jun 2000 16:57:28 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Next in thread: 19 Jun 2000 16:57:28 -0000 Re: Kaffe port, Roman Guseynov

Subject: Re: Kaffe port
From: "Greg Haerr" ####@####.####
Date: 19 Jun 2000 16:57:28 -0000
Message-Id: <0b8801bfda0f$ea396da0$3017dbd0@censoft.com>

: I'm trying to use libungif.so to make Kaffe rendering gifs.
: But there is DrawText() func in this lib's header (gif_lib.h) and in
MWin's
: wingdi.h. That makes compiler unhappy.
: In Win32 DrawText is simple defined as DrawTextA or DrawTextW, so to
: complile all the stuff Kaffe just undefs DrawText before including
: gif_lib.h.
: Could you advise me some workaround to compile it all under MWin?


Well, you'll either have to change libungif or Microwindows.
If  you want to hack Microwindows, it's pretty easy.  Change
the following files:

microwin/src/mwin/wingdi.c
microwin/src/include/wingdi.h

Just change DrawText to DRAWTEXT, or DrawTextA, then
recompile everything.  If DrawText is used in any demo,
then it should be changed there.

Another option might be (I haven't tested this) to
#define DrawText DrawTextA
in microwin/src/include/windows.h, at the very top.  In this way,
all programs should be modified with this one change.

Regards,

Greg



Previous by date: 19 Jun 2000 16:57:28 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Next by date: 19 Jun 2000 16:57:28 -0000 Re: GrAreaCopy...., Simon Wood
Previous in thread: 19 Jun 2000 16:57:28 -0000 Kaffe port, rguseyno.cms.vinnica.ua
Next in thread: 19 Jun 2000 16:57:28 -0000 Re: Kaffe port, Roman Guseynov


Powered by ezmlm-browse 0.20.