home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 21068 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!ra!hightop!humphrey
  3. From: humphrey@hightop.nrl.navy.mil (Jeff Humphrey [Jeffus])
  4. Subject: Re: Help in using XDrawLine()
  5. Message-ID: <C0rGCy.G7A@ra.nrl.navy.mil>
  6. Sender: usenet@ra.nrl.navy.mil
  7. Organization: Computer Security, Naval Research Lab
  8. References: <Jan.12.15.49.54.1993.10085@caip.rutgers.edu>
  9. Date: Tue, 12 Jan 1993 21:43:45 GMT
  10. Lines: 28
  11.  
  12. In article <Jan.12.15.49.54.1993.10085@caip.rutgers.edu> jayesh@caip.rutgers.edu (jayesh patel) writes:
  13. [STUFF DELETED]
  14. >  XSetForeground(display,gc,BlackPixel(display,screen));
  15. >  XSetBackground(display,gc,WhitePixel(display,screen));
  16.  
  17.    XSelectInput (display,win,ExposureMask);
  18.  
  19. >  while(1)
  20. >    {
  21. >      XNextEvent(display,&event);
  22. >      switch(event.type){
  23. >      case Expose:
  24. >    XDrawPoint(display,win,gc,10,10);
  25. >    XDrawPoint(display,win,gc,20,20);
  26. >    XDrawLine(display,win,gc,10,10,20,20);
  27.  
  28.   XFlush (display);
  29.  
  30. >        break;
  31. [STUFF DELETED]
  32.  
  33.   That should fix it ...
  34.  
  35. -- 
  36.  _     ___   ___ _   _ ____
  37. | |   / _ \ / __| | | | ___| #include "standard.disclaimer"   <- IMHO
  38. | |__| |_| | |__| |_| |___ | humphrey@hightop.nrl.navy.mil  (703)960-1000
  39. |____|\___/ \___|\___/|____| @Naval Research Labs           (202)404-8241
  40.