1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/* The exposelgwin routine handles an expose event on the line graphics */
/* window. The argument is the expose event. */
/* Sam Southard, Jr. */
/* Created: 29-Mar-1991 (from figdisp/exposewin) */
/* Modification History: */
/* 2-Apr-1991 SNS/CIT Pixmap and window are now the same size. */
/* 15-Aug-1991 SNS/CIT No longer includes hooks for xvideo */
/* 8-Oct-1991 SNS/CIT Globals moved to globals.h */
/* 10-Oct-1991 SNS/CIT Now handles winxoff & winyoff */
/* 14-Oct-1992 SNS/CIT Now flushs the X connection. RCS id string added. */
#ifndef lint
static char rcsid[]="@(#)$Id: exposelgwin.c,v 1.4 1992/10/19 02:14:16 figaro Exp $";
#endif
/* The program include files */
#include "figdisp.h"
#include "globals.h"
void exposelgwin(event)
XExposeEvent event;
{
/* pretty simple */
XCopyArea(display, lg.pixmap, lg.win, linegc, event.x-lg.winxoff,
event.y-lg.winyoff, (unsigned)event.width,
(unsigned)event.height, event.x, event.y);
XFlush(display);
return;
}
|