home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / atari / st / tech / 6285 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.7 KB

  1. Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!apelled
  2. Newsgroups: comp.sys.atari.st.tech
  3. From: apelled@cix.compulink.co.uk (Adam Pelled)
  4. Subject: Re: Sending objc_draw to a memory buffer rather than screen
  5. Reply-To: apelled@cix.compulink.co.uk
  6. Date: Wed, 16 Dec 1992 02:16:00 +0000
  7. Message-ID: <memo.812189@cix.compulink.co.uk>
  8. Sender: usenet@demon.co.uk
  9. Lines: 28
  10.  
  11.  
  12. In article <1992Dec9.210726.220@elroy.jpl.nasa.gov>, hyc@hanauma.jpl.nasa.gov (Howard Chu) writes:
  13. >I've got a question of my own tho (which shows my own inexperience with
  14. >GEM, sigh) - how do you update a window that is partially obscured, and
  15. >make sure that you only redraw the area that is exposed? (I'm not talking
  16. >about fielding a redraw event from AES, but when you want to draw new stuff
  17. >into a window and it is no longer the top window. Is that rectangle list
  18. >always valid, so I should just treat these two cases the same way?)
  19. >-- 
  20. >  -- Howard Chu @ Jet Propulsion Laboratory, Pasadena, CA
  21. >
  22. >All true wisdom is conveyed in one-line witticisms.
  23.  
  24.     Ah, yes, that's a goody. Took me a while to find out that the rectangle
  25. list is maintained valid at all times. Just walk it even without the redraw
  26. event.
  27.     Incidentally. Has anyone else noticed that when a window is moved back
  28. into full view that the redaw is for all the work area. A bit lazy of the
  29. AES methinks.
  30.     Also the rectangle list is not exactly optimum. i realise it must be
  31. recursive and that there must be some kind of inheritance, but it seems a
  32. shame that it couldn't be merged by the OS and save the overhead for all the
  33. apps having to redraw too many rectangles. With losts of windows this gets to
  34. be quite drastic. Try an experiment and draw a box outline in a  multi window
  35. environment you'll see what i mean.
  36.  
  37.  
  38.     Adam.
  39.