pie drawing in WIN32 differed from X11 pie drawing (w and h were 1 pixel too small)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
5226d5aa7e
commit
e2cc046d09
1
CHANGES
1
CHANGES
@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7
|
||||
|
||||
- Documentation fixes (STR #648, STR #692, STR #730, STR
|
||||
#744, STR #745, STR #942)
|
||||
- Made pie drawing size for WIN32 and OS X the same as X11 (STR #905)
|
||||
- Fixed OS X issue with OpenGL windows inside of Tabs (STR #602)
|
||||
- Fluid Code Editor would occasionally not draw the last character
|
||||
in the buffer (STR #798)
|
||||
|
@ -84,7 +84,7 @@ void fl_pie(int x,int y,int w,int h,double a1,double a2) {
|
||||
int xb = x+w/2+int(w*cos(a2/180.0*M_PI));
|
||||
int yb = y+h/2-int(h*sin(a2/180.0*M_PI));
|
||||
SelectObject(fl_gc, fl_brush());
|
||||
Pie(fl_gc, x, y, x+w, y+h, xa, ya, xb, yb);
|
||||
Pie(fl_gc, x, y, x+w+1, y+h+1, xa, ya, xb, yb);
|
||||
#elif defined(__APPLE_QD__)
|
||||
Rect r; r.left=x; r.right=x+w+1; r.top=y; r.bottom=y+h+1;
|
||||
a1 = a2-a1; a2 = 450-a2;
|
||||
|
Loading…
Reference in New Issue
Block a user