File: exposelgwin.c

package info (click to toggle)
pgplot5 5.2-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 6,280 kB
  • ctags: 5,903
  • sloc: fortran: 37,938; ansic: 18,809; sh: 1,147; objc: 532; makefile: 363; perl: 234; pascal: 233; tcl: 178; awk: 51; csh: 25
file content (31 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (15)
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;
}