Article View: comp.windows.x
Article #24855Re: Help in using XDrawLine()
From: Jeff Humphrey [Jeffus]
Date: Tue, 12 Jan 1993 21:43
Date: Tue, 12 Jan 1993 21:43
28 lines
1320 bytes
1320 bytes
In article <Jan.12.15.49.54.1993.10085@caip.rutgers.edu> jayesh@caip.rutgers.edu (jayesh patel) writes:
[STUFF DELETED]
> XSetForeground(display,gc,BlackPixel(display,screen));
> XSetBackground(display,gc,WhitePixel(display,screen));
XSelectInput (display,win,ExposureMask);
> while(1)
> {
> XNextEvent(display,&event);
> switch(event.type){
> case Expose:
> XDrawPoint(display,win,gc,10,10);
> XDrawPoint(display,win,gc,20,20);
> XDrawLine(display,win,gc,10,10,20,20);
XFlush (display);
> break;
[STUFF DELETED]
That should fix it ...
--
_ ___ ___ _ _ ____
| | / _ \ / __| | | | ___| #include "standard.disclaimer" <- IMHO
| |__| |_| | |__| |_| |___ | humphrey@hightop.nrl.navy.mil (703)960-1000
|____|\___/ \___|\___/|____| @Naval Research Labs (202)404-8241
Technical Details
Message-ID:
<C0rGCy.G7A@ra.nrl.navy.mil>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!ra!hightop!humphreyReferences:
<Jan.12.15.49.54.1993.10085@caip.rutgers.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!europa.asd.contel.com!darwin.sura.net!ra!hightop!humphrey From: humphrey@hightop.nrl.navy.mil (Jeff Humphrey [Jeffus]) Subject: Re: Help in using XDrawLine() Message-ID: <C0rGCy.G7A@ra.nrl.navy.mil> Sender: usenet@ra.nrl.navy.mil Organization: Computer Security, Naval Research Lab References: <Jan.12.15.49.54.1993.10085@caip.rutgers.edu> Date: Tue, 12 Jan 1993 21:43:45 GMT Lines: 28