GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairodriver/Draw_point.c
Go to the documentation of this file.
1 #include "cairodriver.h"
2 
3 #define POINTSIZE 1.0
4 #define HALFPOINTSIZE (0.5*POINTSIZE)
5 
6 void Cairo_draw_point(int x, int y)
7 {
8  G_debug(3, "Cairo_draw_point: %d %d", x, y);
9 
10  cairo_rectangle(cairo, (double)x - HALFPOINTSIZE,
11  (double)y - HALFPOINTSIZE, POINTSIZE, POINTSIZE);
12  cairo_fill(cairo);
13  modified = 1;
14 }
int modified
#define HALFPOINTSIZE
int y
Definition: plot.c:34
cairo_t * cairo
#define POINTSIZE
void Cairo_draw_point(int, int)
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition: gis/debug.c:51
double x
Definition: cnversions.c:36