From 70c4cd102f437a1379a66b036cd0f26837d003ea Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 14 Apr 2005 13:56:07 +0000 Subject: Fix compiler warnings. Use fl_yes and fl_no for the Forms emulation, instead of the hardcoded strings. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/fluid.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fluid') diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index c1b0799e7..2f7ebfbb9 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -982,10 +982,10 @@ void print_menu_cb(Fl_Widget *, void *) { fl_draw(basename, 0, fontsize); - fl_draw(date, 0.5 * (width - fl_width(date)), fontsize); + fl_draw(date, (width - (int)fl_width(date)) / 2, fontsize); sprintf(buffer, "%d/%d", winpage + 1, num_windows); - fl_draw(buffer, width - fl_width(buffer), fontsize); + fl_draw(buffer, width - (int)fl_width(buffer), fontsize); // Get window image... uchar *pixels; // Window image data @@ -1000,8 +1000,8 @@ void print_menu_cb(Fl_Widget *, void *) { // Figure out the window size, first at 100 PPI and then scaled // down if that is too big... - ww = w * xdpi / 100.0; - hh = h * ydpi / 100.0; + ww = w * xdpi / 100; + hh = h * ydpi / 100; if (ww > width) { ww = width; -- cgit v1.2.3