home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1512 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: norconnect.no!not-for-mail
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Screen Problem in C.
  5. Date: 20 Jan 1996 06:18:18 +0100
  6. Organization: NorConnect Internet Services AS
  7. Message-ID: <1222.6593T260T330@norconnect.no>
  8. References: <DLE6wv.7FB@inter.NL.net>
  9. NNTP-Posting-Host: norconnect.no
  10. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  11.  
  12. >>if (screen->ViewPort.Flags & VP_HIDE)
  13.  
  14. >I read another post implying this is not correct, can someone shed more
  15. >light on the subject? If this is ok it would be nice for fMSX's Quiet mode
  16. >(which only updates the screen when the user is looking at it - currently
  17. >this is determined by looking at window activation/deactivation messages; I
  18. >am not completely happy with it and this would be the ideal solution).
  19.  
  20. The library base of the intuition library keeps information about among which
  21. screen is first (in front, which you're looking at) and which window is
  22. active.
  23.  
  24. You can use this information in your programs, but to prevent the first
  25. screen to be changed before you use the data after read, you must lock the
  26. intuition base so that no one can change the current screen/window status.
  27. Do this by intuition.library/LockIBase(). Read the pointer to first screen in
  28. the intuition.library base (FirstScreen). Last, make a call to
  29. UnlockIBase(ibLock) to allow others to use the intuition as well.
  30.  
  31.  
  32.  
  33. ---
  34. CREATIVE LINKS                       __     Kenneth C. Nilsen
  35. http://www.norconnect.no/~kenneth   /_/\    e-mail: kenneth@norconnect.no
  36. "Everything you want"               \_\/    Software & MultiMedia developer
  37.