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

  1. Path: nntp.uio.no!solace!news
  2. From: cmh@lls.se (Magnus Holmgren)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: How to get ModeID from it's name?
  5. Date: 14 Mar 1996 19:48:07
  6. Organization: ReqChange development
  7. Message-ID: <4ik8i2$r65@fizban.solace.mh.se>
  8. References: <4h6puc$21p@leofric.coventry.ac.uk>
  9. NNTP-Posting-Host: mordred.lls.se
  10. Mime-Version: 1.2
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8BIT
  13. X-FTN-To: Dave Jackson
  14. X-Newsreader: Spot 1.3a #26/NetGate 1.2
  15.  
  16. In a message of 01 Mar 96, Dave wrote to :
  17.  
  18.  DJ> Ok, I've tried everything!  How can I get the ModeID from a string
  19.  DJ> like:
  20.  
  21.  DJ> "MULTISCAN:Productivity"
  22.  DJ> or
  23.  DJ> "DBLNTSC:Low Res"
  24.  
  25.  DJ> There must be something I'm missing!
  26.  
  27. Iterate through the display database using NextDisplayInfo().
  28.  
  29. For each mode found, query the display database for the name with
  30. GetDisplayInfoData( ..., DTAG_NAME, id ) and do a string compare with this.
  31.  
  32. Note that many "non-standard" modes doesn't have a name.
  33.  
  34. --
  35. Magnus Holmgren - Amiga programmer and enthusiast
  36.  
  37.  
  38.