summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryuri <yuri>2009-04-24 14:22:05 +0000
committeryuri <yuri>2009-04-24 14:22:05 +0000
commitbff2ae6461f92321e455245a684bb306cda5eb33 (patch)
tree436f4987e54b0eac73bc4575d11986034937a959 /test
parentfa4f93daa5bff3f0fdeacc77ee37b32eb44ae7ed (diff)
fix int -> double warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/rotated_text.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rotated_text.cxx b/test/rotated_text.cxx
index faf79fc8b..a689bbd7e 100644
--- a/test/rotated_text.cxx
+++ b/test/rotated_text.cxx
@@ -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();
}