home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.uio.no!solace!news
- From: cmh@lls.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Too system friendly?
- Date: 02 Apr 1996 19:18:20
- Organization: Programmers' Point
- Message-ID: <4juc81$3gp@fizban.solace.mh.se>
- References: <4jpq5f$i9g@toad.stack.urc.tue.nl>
- NNTP-Posting-Host: morfran.lls.se
- Mime-Version: 1.2
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8BIT
- X-FTN-To: Jaco Schoonen
- X-Newsreader: Spot 1.3a #26/NetGate 1.2
-
- In a message of 02 Apr 96, Jaco wrote to :
-
- JS> The function to update the screen changes those data nad then use
- JS> several WritePixelLine8() calls to put them on screen.
- JS> On CyberGraphx-screen everything works as expected, but on
- JS> non-cybergraphx the data is set to all zero's!
- JS> The first time I call this function everything's fine and the screen
- JS> get's drawn on cybergraphx as well as on aga/ecs. After that (the next
- JS> time I call it) all my arrays are empty.
-
- The WritePixelLine8() call "trashes" your pixel array. The CyberGraphX
- doesn't do this, since it doesn't need to change the data format (much).
-
- JS> It just doesn't make sense. I change the data only with assignments
- JS> done by the CPU. The only thing I do which has something to do with
- JS> graphics is the WritePixelLine8(), but that's not supposed to change
- JS> it's source-data is it?
-
- Well, it isn't documented behaviour, but...
-
- JS> And how come it works fine on CyberGraphX? I checked the arrays, by
- JS> dumping them line by line in ascii on screen.
-
- On CyberGraphX, a different version is used, that doesn't have that
- behaviour. See above.
-
- JS> Anyone please help me, since I don't know what possibly could be wrong
- JS> :-(
-
- I'd say you need to copy your pixel data to a buffer before rendering.
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-