www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/13/19:31:31

From: Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Porting DJGPP graphics app to Windows
Date: Sat, 14 Dec 2002 11:29:02 +1100
Organization: ECLiPSE
Lines: 26
Message-ID: <rkukvuogpbgk07huqir4n0s9e33ikd5nq0@4ax.com>
References: <3DF91FB8 DOT DD154090 AT cyberoptics DOT com>
NNTP-Posting-Host: p132-tnt8.syd.ihug.com.au
Mime-Version: 1.0
X-Trace: lust.ihug.co.nz 1039825745 27869 203.173.147.132 (14 Dec 2002 00:29:05 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Sat, 14 Dec 2002 00:29:05 +0000 (UTC)
X-Newsreader: Forte Agent 1.92/32.572
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>I have an existing DJGPP app that displays images, plots, etc. by doing
>direct writes to video memory.  The graphics in this app won't work
>under NT or 2000, for well-known reasons.  I would like to get this
>program to work under NT/2000 by redirecting the graphics writing to a
>malloc'ed region (which I can do easily), then calling a Windows
>function to copy the image to a window.  Thus, I'd have two windows
>open; a text window just as before, and a graphics window.
>
>Is this feasible to do?  I have looked at 3.6 of the FAQ, but am still
>uncertain how to proceed.  I don't want a Windows-hosted compiler (the
>DJGPP tools suit me just fine :-), nor do I need to create full-blown
>Windows apps.
If you change your app to use Allegro then it will work for some
graphics modes under 2K and XP. It does not allow you to access some
of the Vesa 3 or linear modes from the testing I did about 6 months
ago,

Once you convert the app to Allegeo then you can use the same source
if it does not use any other specific OS calls to Linux, Windows, QNX,
BeOS and possibly some more.

I would suggest that you download Allegro 4.1.6 (make that 4.1.7 now)
from the allegro site:-
http://alleg.sourceforge.net/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019