GRASS Programmer's Manual  6.4.2(2012)
 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 }