home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / comms / network / grn1asrc.lha / screenmode.txt < prev    next >
Internet Message Format  |  1992-02-25  |  3KB

  1. Path: zorch!vsi1!ames!elroy.jpl.nasa.gov!usc!wupost!uunet!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Question about Intuition 2.0
  5. Message-ID: <28610@cbmvax.commodore.com>
  6. Date: 25 Feb 92 14:17:39 GMT
  7. References: <mykes.9980@amiga0.SF-Bay.ORG>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 54
  11.  
  12. In article <mykes.9980@amiga0.SF-Bay.ORG> mykes@amiga0.SF-Bay.ORG (Mike Schwartz) writes:
  13. >Under Intuition 2.0, how can you tell the displayed size
  14. >of the workbench (or other public screen)?  More specifically,
  15. >I am running, say, a hires (non interlaced) scrollable workbench
  16. >of 1K x 1K pixels.  When I use QueryOverscan(), I need to
  17. >programatically determine if the WB is HIRES or HIRESLACE, etc.
  18.  
  19. There are a few sizes at play here.  I'll provide a little background.
  20. 2.0 allows screens that are wider or taller than the display.  The
  21. screen->Width and screen->Height are the actual dimensions of the
  22. bitmap, and are independent of how much is displayed.
  23.  
  24. The "display clip" is the rectangle which is displayed.  Screens that
  25. are bigger than their display clip will scroll.  Any screen can have
  26. an arbitrary display clip, but the system does provide a few default
  27. display clips:
  28.  
  29. "Text Overscan" is a rectangle roughly corresponding to the "morerows"
  30. size from 1.3.  The user gets to set the text overscan size, and the
  31. idea is that all pixels inside Text Overscan should be visible on the
  32. user's monitor.  The Workbench screen has a Text Overscan display clip.
  33.  
  34. "Standard Overscan" is a rectangle the user sets.  When correctly set,
  35. it's the smallest rectangle that completely fills the user's particular
  36. monitor.  The idea is "what is the smallest rectangle that gives me
  37. wall-to-wall video on my system?"
  38.  
  39. "Max Overscan" is the largest size overscan that the system fully
  40. supports (hence it is not settable).
  41.  
  42. For the Workbench, you can get its dclip like so:
  43.  
  44.     if ( wbscreen = LockPubScreen("Workbench") )
  45.     {
  46.         if ( ( modeID = GetVPModeID( &wbscreen->ViewPort ) ) != INVALID_ID )
  47.         {
  48.         if ( QueryOverscan( modeID, &rect, OSCAN_TEXT ) )
  49.         {
  50.            /* got it */
  51.         }
  52.         }
  53.         UnlockPubScreen( NULL, wbscreen );
  54.     }
  55.     
  56.  
  57. >Mike Schwartz (Author of GRn and MailMinder)
  58.  
  59.      Peter
  60. --
  61. From the disk of ...
  62. Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
  63. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  64. My opinions do not necessarily represent the opinions of my employer.
  65.  
  66.