Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!psuvax1!vu-vlsi!cbmvax!carolyn From: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: Super-Bitmap Problem Keywords: Help with SuperBitMap Window (short) Message-ID: <3144@cbmvax.UUCP> Date: 14 Jan 88 17:44:39 GMT References: <615@wolf.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 25 In article <615@wolf.UUCP> uzun@wolf.UUCP (Roger Uzun) writes: >I am trying to opena super bitmap window on the WorkBench and all >is fine except that the backgroud is all garbaged up, that is it is >not one solid background color like Blue in the case of my workbench. >I set up the Window to be a max 640 X 200 pixels and open it like so: > >InitBitMap(&TheBitMap,2,640,200); >TheBitMap.Planes[0] = AllocRaster(640,200); >TheBitMap.Planes[1] = AllocRaster(640,200); >w = OpenWindow(&MyWindow); > AllocRaster() doesn't clear. Use something like BltClear() to clear. Make sure you store ptr to BitMap structure in your NewWindow structure You must deallocate your structures and planes See Super.c on Fish Disk #28 for full example Super.c. Or it may be posted in comp.sources.amiga -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CATS >>Commodore Amiga Technical Support<< UUCP ...{allegra,ihnp4,rutgers}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=