Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!ruuinf!jeroen From: jeroen@ruuinf.cs.ruu.nl (Jeroen Fokker) Newsgroups: comp.sys.atari.st.tech Subject: Re: Closing AES boxes interfering with VDI drawing Keywords: aes dialog Message-ID: <4545@ruuinf.cs.ruu.nl> Date: 19 Dec 90 09:06:02 GMT References: <111628@convex.convex.com> <3391@medusainformatik.uni-erlangen.de> <1990Dec18.161238.24031@unixg.ubc.ca> Organization: Utrecht University, Dept. of CS Lines: 40 In article <1990Dec18.161238.24031@unixg.ubc.ca> mintha@unixg.ubc.ca (Jim Mintha) writes: > I'm writing a program that uses only AES, and not VDI. When I put up >a dialog box, I save the portion of the screen used with my own copy routines, >and when the dialog finishes, I copy the region back. Everything works fine >except when the user moves the mouse at a later time, a small square the size >of the mouse appears with the standard desktop background pattern. Is there >anyway to avoid this, can I change the buffer used to hold what is underneath >the mouse pointer background? While copying the screen, you must temporarily switch the mouse off, like in: copyscreen(from,to) long from,to; { register long *x; register long *y; register int i; x = (long*) to; y = (long*) from; i = 8000; graf_mouse(M_OFF,0L);; do{ *x = *y; x++; y++; } while (--i); graf_mouse(M_ON,0L); } Note for Swedish flamers: no, I do NOT intend to port my programs to later versions of the Atari. It is my decision to sacrifice portability later for efficiency now. I am aware of the fact that it is harmful. -- Jeroen Fokker | jeroen@cs.ruu.nl dept.of Computer Science, Utrecht University | tel.+31-30-534129 PObox 80089, 3508TB Utrecht, the Netherlands | fax.+31-30-513791