home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!gdt!aber!hrs
- From: hrs@aber.ac.uk (Herbert Martin Sauro)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Sending objc_draw to a memory buffer rather than screen
- Message-ID: <1992Dec11.122927.4363@aber.ac.uk>
- Date: 11 Dec 92 12:29:27 GMT
- References: <1992Dec7.171606.23964@aber.ac.uk> <1g074oINNpbf@rs1.rrz.Uni-Koeln.DE> <1992Dec9.210726.220@elroy.jpl.nasa.gov>
- Organization: University of Wales, Aberystwyth
- Lines: 46
-
- In article <1992Dec9.210726.220@elroy.jpl.nasa.gov> hyc@hanauma.jpl.nasa.gov (Howard Chu) writes:
- >In article <1g074oINNpbf@rs1.rrz.Uni-Koeln.DE> kim@vax.mpiz-koeln.mpg.dbp.de writes:
- >>Of course, you can do this the hacky way, using the XBIOS
- >>setscreen() function to redirect the screen output to some buffer
- >>from which you then blit according to your needs. This is
- >>definitely not the way to go if the software you develop is
- >>supposed to run under any multitasking TOS version, and I'm sure
- >>the mere fact I mentioned this possibility will get me flames...
- >
- >Actually, MiNT maintains a private copy of the Logbase pointer for
- >every process, so this would be a viable approach. However, I think
- >there's an easier way to manage the scrollable text list - just reset
- >the string pointers and redraw the list.
- >
- >I've got a question of my own tho (which shows my own inexperience with
- >GEM, sigh) - how do you update a window that is partially obscured, and
- >make sure that you only redraw the area that is exposed? (I'm not talking
- >about fielding a redraw event from AES, but when you want to draw new stuff
- >into a window and it is no longer the top window. Is that rectangle list
- >always valid, so I should just treat these two cases the same way?)
- >--
- > -- Howard Chu @ Jet Propulsion Laboratory, Pasadena, CA
-
- I have found two problems with using the normal redraw approach to
- updating a list box. The first is that (I presume you mean redraw with
- objc_draw) redraws are quite slow (unless you have an accelerator)
- and secondly there is a lot of flicker -- of course one could use
- Vsync to clean the display but the then redrawing slows down even more.
-
- I'm afraid I can't answer your question directly but I have a feeling
- that the visible rectangle list is available for every open window including
- the desktop. The fact that the desktop has its own rectagle list is not
- very well documented as far as I can tell and it was only by working my
- way through a GEM application listing from a German mag that I realised
- that the desktop did have its own rectangle list - this is essential when
- you have icons on the the desktop which get covered and uncovered by other
- windows.
- So from that I suppose that a non-topped window also
- must have its own rectangle list.
-
- Herb
- --
- /******************************************************************************
- Herbert Sauro e-mail: hrs@aber.ac.uk
- Biological Sciences phone: +44 970 622353
- Univesity College of Wales
-