mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Fl_Chart would draw outside its bounding box (STR #780)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -2,6 +2,9 @@ CHANGES IN FLTK 1.1.7
|
|||||||
|
|
||||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||||
#744, STR #745)
|
#744, STR #745)
|
||||||
|
- Menus and other pop-up windows now obey screen
|
||||||
|
boundaries on multi-screen displays (STR #781)
|
||||||
|
- Fl_Chart would draw outside its bounding box (STR #780)
|
||||||
- Added Fl::screen_count() and Fl::screen_xywh() APIs to
|
- Added Fl::screen_count() and Fl::screen_xywh() APIs to
|
||||||
support multi-screen displays.
|
support multi-screen displays.
|
||||||
- FLUID now supports direct creation of widget classes.
|
- FLUID now supports direct creation of widget classes.
|
||||||
|
|||||||
+3
-3
@@ -187,9 +187,9 @@ static void draw_piechart(int x,int y,int w,int h,
|
|||||||
double txc,tyc; /* temporary center */
|
double txc,tyc; /* temporary center */
|
||||||
double lh = fl_height();
|
double lh = fl_height();
|
||||||
/* compute center and radius */
|
/* compute center and radius */
|
||||||
xc = x+w/2.0; yc = y+h/2.0;
|
double h_denom = (special ? 2.3 : 2.0);
|
||||||
rad = h/2.0 - lh;
|
rad = (h - 2*lh)/h_denom/1.1;
|
||||||
if (special) { yc += 0.1*rad; rad = 0.9*rad;}
|
xc = x+w/2.0; yc = y+h-1.1*rad-lh;
|
||||||
/* compute sum of values */
|
/* compute sum of values */
|
||||||
tot = 0.0;
|
tot = 0.0;
|
||||||
for (i=0; i<numb; i++)
|
for (i=0; i<numb; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user