diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-07-25 19:14:11 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-07-25 19:14:11 +0000 |
| commit | 9ee02e0f013398536b61f08dd3ced4188cd559bb (patch) | |
| tree | 6e402bb3c6550be3e377000255b78656f7965cd4 /src/Fl_Help_View.cxx | |
| parent | 58699112db38371af2e9e4ee1276c69de640b3bd (diff) | |
Fix compiler warning by adding a cast...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
| -rw-r--r-- | src/Fl_Help_View.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 1fa9488ae..76565dee6 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -3,7 +3,7 @@ // // Fl_Help_View widget routines. // -// Copyright 1997-2005 by Easy Software Products. +// Copyright 1997-2006 by Easy Software Products. // Image support donated by Matthias Melcher, Copyright 2000. // // This library is free software; you can redistribute it and/or @@ -198,9 +198,9 @@ void Fl_Help_View::hv_draw(const char *t, int x, int y) if (selected && current_view==this && current_pos<selection_last && current_pos>=selection_first) { Fl_Color c = fl_color(); fl_color(hv_selection_color); - int w = fl_width(t); + int w = (int)fl_width(t); if (current_pos+(int)strlen(t)<selection_last) - w += fl_width(' '); + w += (int)fl_width(' '); fl_rectf(x, y+fl_descent()-fl_height(), w, fl_height()); fl_color(hv_selection_text_color); fl_draw(t, x, y); @@ -209,7 +209,7 @@ void Fl_Help_View::hv_draw(const char *t, int x, int y) fl_draw(t, x, y); } if (draw_mode) { - int w = fl_width(t); + int w = (int)fl_width(t); if (mouse_x>=x && mouse_x<x+w) { if (mouse_y>=y-fl_height()+fl_descent()&&mouse_y<=y+fl_descent()) { int f = current_pos; |
