diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-31 12:09:52 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-31 12:09:52 +0000 |
| commit | 77f607224cb0e8df760fcea59347d8f38433033e (patch) | |
| tree | e098d8d5f1926ecc31f226f22f23db96cc64b423 /src/Fl_Input_.cxx | |
| parent | 5991a49ffe9f0a31d17302c77b81f6bba05ff787 (diff) | |
Fix compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
| -rw-r--r-- | src/Fl_Input_.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index e1d84fcf9..a7f6a9196 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -346,9 +346,9 @@ void Fl_Input_::drawtext(int X, int Y, int W, int H) { } fl_draw(buf+offset1, offset2-offset1, x1, (float)(Y+ypos+desc)); if (Fl::screen_driver()->has_marked_text() && Fl::compose_state) { - fl_color( fl_color_average(textcolor(), color(), 0.6) ); - float width = fl_width(buf+offset1, offset2-offset1); - fl_line(x1, Y+ypos+height-1, x1+width, Y+ypos+height-1); + fl_color( fl_color_average(textcolor(), color(), 0.6f) ); + float width = (float)fl_width(buf+offset1, offset2-offset1); + fl_line((int)x1, Y+ypos+height-1, (int)(x1+width), Y+ypos+height-1); } if (pp < e) { fl_color(tc); @@ -378,7 +378,7 @@ void Fl_Input_::drawtext(int X, int Y, int W, int H) { } else { fl_rectf((int)(xpos+curx+0.5), Y+ypos, 2, height); } - Fl::insertion_point_location(xpos+curx, Y+ypos+height, height); + Fl::insertion_point_location((int)xpos+curx, Y+ypos+height, height); } CONTINUE: |
