summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-04-14 13:56:07 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-04-14 13:56:07 +0000
commit70c4cd102f437a1379a66b036cd0f26837d003ea (patch)
treef700115eb2cd5a895d8be710b5ed16a80185c601 /fluid
parent217f77c9ef015684b08f77b2d129155c76414f9e (diff)
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
Diffstat (limited to 'fluid')
-rw-r--r--fluid/fluid.cxx8
1 files changed, 4 insertions, 4 deletions
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;