Author: bgbnbigben
Date: 2011-03-02 04:40:20 -0800 (Wed, 02 Mar 2011)
New Revision: 8498
Log:
Cleaned up yet more warnings...


Modified:
   trunk/src/Cursor.cxx
   trunk/src/FileChooser.cxx
   trunk/src/drawtext.cxx

Modified: trunk/src/Cursor.cxx
===================================================================
--- trunk/src/Cursor.cxx        2011-03-02 12:22:15 UTC (rev 8497)
+++ trunk/src/Cursor.cxx        2011-03-02 12:40:20 UTC (rev 8498)
@@ -311,7 +311,7 @@
 
   ReleaseDC(NULL,hdc);
 
-  int w = img->w() , h = img->h();
+  int w = img->w()/* , h = img->h()*/;
   unsigned char* isrc = img->buffer();
   DWORD *lpdwPixel = (DWORD *)lpBits;
   for (int i=0;i<cw;i++)

Modified: trunk/src/FileChooser.cxx
===================================================================
--- trunk/src/FileChooser.cxx   2011-03-02 12:22:15 UTC (rev 8497)
+++ trunk/src/FileChooser.cxx   2011-03-02 12:40:20 UTC (rev 8498)
@@ -497,4 +497,5 @@
   return favorites_showing;
 }
 
-//  End of "$Id$"
\ No newline at end of file
+//  End of "$Id$"
+

Modified: trunk/src/drawtext.cxx
===================================================================
--- trunk/src/drawtext.cxx      2011-03-02 12:22:15 UTC (rev 8497)
+++ trunk/src/drawtext.cxx      2011-03-02 12:40:20 UTC (rev 8498)
@@ -438,12 +438,12 @@
        // so add space to enhance the shortcut appearance 
        // finally, the shortcut symbol should be centered for all platforms 
        // whatever the font is so add a potential delta
-       int xdelta = (int) (getwidth(p,1)-getwidth(us,1))/2;
-       int ydelta =
+       float xdelta = (getwidth(p,1)-getwidth(us,1))/2.0;
+       float ydelta =
 #ifndef        _WIN32
-           (getdescent())/2;
+           (getdescent())/2.0;
 #else
-       (getdescent())/2 -1;
+       (getdescent())/2.0 - 1.0;
 #endif
        add(0, us, us+1, x+xdelta, y+ascent+ydelta, getsize(),getsize(), 
ascent, spacing);
 }

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

Reply via email to