home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19769 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.5 KB

  1. Path: sparky!uunet!enterpoop.mit.edu!eru.mt.luth.se!kth.se!cyklop.nada.kth.se!d88-jwa
  2. From: d88-jwa@cyklop.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Depth and Device Manager Questions
  5. Keywords: Maximum Depth, Device Manager, Direct Device
  6. Message-ID: <1992Dec13.212259.21979@kth.se>
  7. Date: 13 Dec 92 21:22:59 GMT
  8. References: <1992Dec12.055906.19092@cc.uow.edu.au>
  9. Sender: usenet@kth.se (Usenet)
  10. Organization: Royal Institute of Technology, Stockholm, Sweden
  11. Lines: 50
  12. Nntp-Posting-Host: cyklop.nada.kth.se
  13.  
  14. In <1992Dec12.055906.19092@cc.uow.edu.au> geoff@cc.uow.edu.au (geoffrey roberts) writes:
  15.  
  16. >realise that after (and including) system 6.0.5 I can recursively call 
  17. >the HasDepth function passing to it every possible depth.   This seems 
  18. >a little long winded.   Is their a cleaner way?
  19.  
  20. Yes, you can call ite iteratively... :-)
  21.  
  22. Since there are only 6 different bit depths, what's unclean
  23. about this? (10 if you count gray-scale as well)
  24.  
  25. >Secondly, if using the HasDepth function is the only possible way of 
  26. >determining the maximum depth of a device, how can I find the maximum 
  27. >possible depth of a device before system 6.0.5?   All we know is that 
  28.  
  29. As far as I know, you can't. Instead, check what depth the various
  30. screens are in, and if you find none suitable, exit with an alert
  31. saying you need XXX. Let the user change. Or just plain require 6.0.7
  32. which is a much less buggy system.
  33.  
  34. >    In this code calls are being made to the device manager, yet Inside 
  35. >Macintosh Vol II it states:
  36. >"The display screen is not a device; drawing on the screen is handled 
  37. >by quickdraw"
  38. >Does this apply to pre-colour machines only.   ie, Can I use device 
  39. >manager calls to communicate to the graphics card - (NOT TO THE SCREEN) 
  40.  
  41. Well, that depends on how compatible you want to be. There are,
  42. for instance, screens that draw via SCSI - or over a network!
  43. Those will not even have devices associated. There is also
  44. internal video in many Macs, but it's done so that it looks
  45. like a slot.
  46.  
  47. >Finally, would this call work on machines that use the PDS slot for 
  48. >their graphics card?
  49.  
  50. I'm not sure ANYTHING is guaranteed; you will have to make hard
  51. choises between compatibility and what rules you feel you have to
  52. break. If at all possible, include a "Use Only QuickDraw" checkbox
  53. (that's ON at first start!)
  54.  
  55. Cheers,
  56.  
  57.                             / h+
  58.  
  59. -- 
  60.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  61.  
  62.    Speed is arbitrary. Don't believe me? Try a PowerBook 180 running
  63.    System 7 against a 486 laptop running Windows 3.1.
  64.