File: FWinRedraw.c

package info (click to toggle)
acm4 4.7-18
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,776 kB
  • ctags: 1,621
  • sloc: ansic: 16,777; makefile: 364; sh: 31
file content (22 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <Alib.h>

/*
 *  ForceWindowRedraw :  Invalidate the previous frame's drawing information
 *			 so that the animation is completely redrawn at the
 *			 completion of the current frame.
 */
 
void
ForceWindowRedraw (w)
AWindow	*w; {

	register int i;

	for (i=0; i<w->height; ++i)
		w->lastScanLine[i].count = 0;

#ifdef HAS_FRAME_BUFFER
	LocateWindowOrigin (w->display, w->d, &x, &y);
	FrameBufferSetOrigin (x, y);
#endif
}