Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!overload!dillon From: dillon@overload.Berkeley.CA.US (Matthew Dillon) Newsgroups: comp.sys.amiga.programmer Subject: Re: Mouse blanking Message-ID: Date: 8 May 91 19:50:19 GMT References: <9107@crash.cts.com> Organization: Not an Organization Lines: 37 In article mwm@pa.dec.com (Mike (My Watch Has Windows) Meyer) writes: > >Matt, what does DMouse do to prevent the sprite dma from being turned >off while a sprite is being displayed? I'm still trying to find a good >solution to that. > > -- >Love and affection, Mike Meyer >Of the corporate kind. mwm@pa.dec.com >It's just belly to belly, decwrl!mwm >Never eye to eye. Oh, that's an easy one! Somebody on bix suggested it to me ... problem: if sprite DMA is turned off while the sprite is being displayed, the sprite DMA registers will contain non-zero data causing a vertical bar. solution: After turning off sprite DMA, write a 0 to the DMA data registers for the sprite(s). OFF_SPRITE; custom.spr[0].dataa=0; /* sprite0 DMA */ custom.spr[0].datab=0; /* data register */ Though I just realized that I should go through all the other sprite's DMA data registers too instead of just sprite 0. -Matt -- Matthew Dillon dillon@Overload.Berkeley.CA.US 891 Regal Rd. uunet.uu.net!overload!dillon Berkeley, Ca. 94708 USA