GRASS Programmer's Manual
6.4.2(2012)
|
00001 #include "cairodriver.h" 00002 00003 #define POINTSIZE 1.0 00004 #define HALFPOINTSIZE (0.5*POINTSIZE) 00005 00006 void Cairo_draw_point(int x, int y) 00007 { 00008 G_debug(3, "Cairo_draw_point: %d %d", x, y); 00009 00010 cairo_rectangle(cairo, (double)x - HALFPOINTSIZE, 00011 (double)y - HALFPOINTSIZE, POINTSIZE, POINTSIZE); 00012 cairo_fill(cairo); 00013 modified = 1; 00014 }