Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!mit-eddie!gary From: gary@eddie.MIT.EDU (Gary Samad) Newsgroups: comp.sys.amiga Subject: Re: Buglist for V1.2 Message-ID: <5632@eddie.MIT.EDU> Date: Tue, 28-Apr-87 13:49:28 EDT Article-I.D.: eddie.5632 Posted: Tue Apr 28 13:49:28 1987 Date-Received: Thu, 30-Apr-87 01:00:52 EDT References: <8704181043.AA14428@cogsci.berkeley.edu> <1987Apr21.152123.4753@sq.uucp> Reply-To: gary@eddie.MIT.EDU (Gary Samad) Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 27 In article <1987Apr21.152123.4753@sq.uucp> hobie@sq.UUCP (Hobie Orris) writes: > One of the bugs mentioned in this list is that the rp_Mask field >in the RastPort doesn't seem to do much. I had this problem when using >ClipBit() to copy a 4-plane RastPort to a 5-plane screen, replacing a previous >5-plane image, and setting the rp_Mask appropriately (0x1f for 5 planes, 0x0f >for four). What happened is that the four planes of the second image appeared, >along with the fifth plane of the first. Any comments, CATS? Yes, I've had some bizare problems with rp_Mask also, but have finally figured it all out. As for your problem, the rp_Mask in the RastPort simply defines how many planes will be written whenever you write into that RastPort. So, your 4-plane image is correctly rendered into your 5-plane window. That fifth plane is NOT erased, but is left alone. The other problem which was mentioned in the buglist is that if you shu}iffle your windows around while rendering into a window with rp_Mask set to anything other than the depth of the screen causes funny colors to be left behind. This happens because you have modified Intuition's RastPort and this RastPort is used when moving windows around. Two solutions are possible. You may Forbid and Permit around any drawing operations so that no window shuffling is possible while you have the rp_Mask set to an unusual value, but you MUST reset it to it's original value before Permitting. The second solution is to set up a copy of Intuition's RastPort and ONLY use that one when rendering into funny rp_Mask windows. Learned the hard way... Gary