C (239/304)

From:Allan Odgaard
Date:27 Aug 2000 at 09:19:14
Subject:Re: ReadPixelLine8(N)

Hello Ren�,

Please keep this discusion on the Amiga-C list!

I get too many private mails of this sort, which I'm sure other people
can also answer!

> rp = *win->RPort;
> rp.Layer = NULL;
> rp.BitMap->BytesPerRow = (((width+15)>>4)<<1);
> rp.BitMap->Rows = 1;

You trash the screen bitmap here, instead do:

rp = *win->RPort;
rp.Layer = NULL;
rp.BitMap = AllocBitMap((width+15) & ~15, 1, 8, 0L,
win->RPort->BitMap);

Kind regards Allan