Author: yuri
Date: 2009-04-24 07:22:05 -0700 (Fri, 24 Apr 2009)
New Revision: 6781
Log:
fix int -> double warnings


Modified:
   branches/branch-1.3/test/rotated_text.cxx

Modified: branches/branch-1.3/test/rotated_text.cxx
===================================================================
--- branches/branch-1.3/test/rotated_text.cxx   2009-04-24 09:32:18 UTC (rev 
6780)
+++ branches/branch-1.3/test/rotated_text.cxx   2009-04-24 14:22:05 UTC (rev 
6781)
@@ -62,11 +62,11 @@
     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 @@
   window->redraw();
 }
 void angle_cb(Fl_Widget *,void *) {
-  text->rt_angle=angles->value();
+  text->rt_angle=(int)angles->value();
   window->redraw();
 }
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to