home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7903 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.6 KB

  1. Path: sparky!uunet!gatech!asuvax!cs.utexas.edu!sun-barr!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: How do you use Non-PM graphics (VGA)?
  5. Message-ID: <1993Jan22.172551.21041@njitgw.njit.edu>
  6. Date: 22 Jan 93 17:25:51 GMT
  7. References: <5#k30!p@rpi.edu>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 27
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <5#k30!p@rpi.edu> myersr@aix.rpi.edu (Robert Parish Myers) writes:
  14. >How do you use VGA graphics (both 320x200x256 and 640x480x16) in a
  15. >full screen OS/2 Session
  16. >
  17. >a) In General?
  18.  
  19. I believe there are Dos and/or Vio calls to set the screen mode, and
  20. request a memory buffer that will map to the display.  You can then
  21. read/write the display as if it were any other memory page.  At least
  22. I think this is how it works.
  23.  
  24. I know that there are system calls for enabling full-screen graphics
  25. without violating memory protection, but I've never used any of them.
  26. And they are very non-portable, so you may need to locate
  27. documentation for the 16-bit calls to figure out what to do with them.
  28.  
  29. And (of course) these calls will fail in a windowed or PM session.
  30.  
  31. >b) In emx 0.8e (which I'm using now) and emx0.8f(which I plan to be
  32. >   using soon)?
  33.  
  34. I'm pretty sure that you use the general method with EMX compilers.
  35. -- 
  36.   |)  David Charlap          | .signature confiscated by FBI due to
  37.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  38. ((|,)                        | source of these .signature virusses
  39.  ~|~
  40.