fix int -> double warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
fa4f93daa5
commit
bff2ae6461
@ -62,11 +62,11 @@ class Rotated_Label_Box : public Fl_Widget{
|
||||
if(rt_align&FL_ALIGN_LEFT){
|
||||
dx=dy=0;
|
||||
}else if(rt_align&FL_ALIGN_RIGHT){
|
||||
dy=-sin(M_PI*(double)(rt_angle+180)/180.)*(double)dx;
|
||||
dx=cos(M_PI*(double)(rt_angle+180)/180.)*(double)dx;
|
||||
dy=(int)-sin(M_PI*(double)(rt_angle+180)/180.)*(double)dx;
|
||||
dx=(int)cos(M_PI*(double)(rt_angle+180)/180.)*(double)dx;
|
||||
}else{
|
||||
dy=sin(M_PI*(double)rt_angle/180.)*(double)dx;
|
||||
dx=-cos(M_PI*(double)rt_angle/180.)*(double)dx;
|
||||
dy=(int)sin(M_PI*(double)rt_angle/180.)*(double)dx;
|
||||
dx=(int)-cos(M_PI*(double)rt_angle/180.)*(double)dx;
|
||||
dx/=2;dy/=2;
|
||||
}
|
||||
if(labeltype()==FL_SHADOW_LABEL)shadow_label(x()+w()/2+dx,y()+h()/2+dy);
|
||||
@ -136,7 +136,7 @@ void size_cb(Fl_Widget *,void *) {
|
||||
window->redraw();
|
||||
}
|
||||
void angle_cb(Fl_Widget *,void *) {
|
||||
text->rt_angle=angles->value();
|
||||
text->rt_angle=(int)angles->value();
|
||||
window->redraw();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user