#include #include void tryCircle(double centerY, double radius) { fprintf(stderr,"Start centerY %f, radius %f\n",centerY, radius); cairo_surface_t *surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,8,21); cairo_t *cairo = cairo_create(surf); cairo_set_antialias(cairo,CAIRO_ANTIALIAS_NONE); cairo_arc(cairo, 0.0, centerY, radius, 0.0, 6.2831853071795862); cairo_fill_preserve(cairo); cairo_surface_destroy(surf); cairo_destroy(cairo); fprintf(stderr,"Finish centerY %f radius %f\n",centerY,radius); } int main(int argc, char *argv[]) { fprintf(stderr,"Starting the test\n"); fprintf(stderr,"-------------------------\n"); tryCircle(0.0, 14.0); tryCircle(1.0, 14.0); tryCircle(0.0,8761126469220696064.0); tryCircle(1.0,8761126469220696064.0); tryCircle(0.0,5761126469220696064.0); tryCircle(1.0,5761126469220696064.0); fprintf(stderr,"-------------------------\n"); fprintf(stderr,"Finished the test\n"); return 0; }