There seems to be an out by one error in drawing coordinate between
win32 and X11/

Here is an example

static void DrawRod(int x, int y, int d)
{
  int r = d >> 1;
  fl_color(FL_RED);
#ifdef WIN32
  fl_pie(x, y, d, d, 0, 360);
#else
  fl_pie(x, y, d + 1, d + 1, 0, 360);
#endif
  fl_color(FL_BLACK);
  fl_circle(x + r, y + r, r);
}


I think that lines are drawn correctly but I could be wrong on that.
There is a difference of 1 between line drawing and circle drawing
coordinates.

It is more annoying than a problem.

Is there some underlying design reason or is it just an oversight. If
this is an oversight correcting it now would break existing code.

This has existed in Version 1.1.x and 1.3, to my knowledge.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to