home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14501 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.6 KB

  1. From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
  2. Date: Mon, 4 Jan 1993 21:24:06 GMT
  3. Subject: Re: Using starbase in X
  4. Message-ID: <7371512@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hstroyan
  7. Newsgroups: comp.sys.hp
  8. References: <1993Jan3.225641.22767@news.media.mit.edu>
  9. Lines: 24
  10.  
  11. In comp.sys.hp, floyd@media.mit.edu (Bob Sabiston) writes:
  12.  
  13. > The problem is that about half my graphics show up in the window and
  14. > then the computer hangs.  I have a theory that the program is hanging
  15. > at the points in my program where I access the frame buffer directly
  16. > (using the gescape call R_LOCK_DEVICE).  I have to access the frame buffer
  17. > in this way to draw icons, and to draw antialiased fonts and lines.
  18. >  
  19. > Does anyone know if the R_LOCK_DEVICE gescape can be used in programs
  20. > that run in Xwindows?  If so, anybody have any idea what could cause the
  21. > program to hang my machine?
  22.  
  23. As John indicated, you can use direct frame buffer access in an X window,
  24. but I would recommend that you modify your code to use X or Starbase to
  25. perform the same functionality.  You could use either of these API's to 
  26. block_read the framebuffer's contents into a working buffer in memory, 
  27. perform your modifications and then block_write back the result.  This 
  28. method will deal with the issues of window clipping and offsets for you.
  29. For the icons you mention, only a block_write should be necessary.
  30.  
  31. --
  32. Howard Stroyan                                         
  33. Hewlett-Packard                                        hstroyan@fc.hp.com
  34. Systems Technology Division                     
  35.