GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
pngdriver/erase.c
Go to the documentation of this file.
1 
15 #include "pngdriver.h"
16 
20 void PNG_Erase(void)
21 {
22  int n = png.width * png.height;
23  int i;
24 
25  for (i = 0; i < n; i++)
26  png.grid[i] = png.background;
27 
28  png.modified = 1;
29 }
int width
Definition: pngdriver.h:43
GRASS png display driver - header file.
int height
Definition: pngdriver.h:43
struct png_state png
void PNG_Erase(void)
Erase screen.
int modified
Definition: pngdriver.h:47
unsigned int * grid
Definition: pngdriver.h:44
unsigned int background
Definition: pngdriver.h:46