mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Fix compiler warning by adding a cast...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// Fl_Help_View widget routines.
|
// 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.
|
// Image support donated by Matthias Melcher, Copyright 2000.
|
||||||
//
|
//
|
||||||
// This library is free software; you can redistribute it and/or
|
// 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) {
|
if (selected && current_view==this && current_pos<selection_last && current_pos>=selection_first) {
|
||||||
Fl_Color c = fl_color();
|
Fl_Color c = fl_color();
|
||||||
fl_color(hv_selection_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)
|
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_rectf(x, y+fl_descent()-fl_height(), w, fl_height());
|
||||||
fl_color(hv_selection_text_color);
|
fl_color(hv_selection_text_color);
|
||||||
fl_draw(t, x, y);
|
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);
|
fl_draw(t, x, y);
|
||||||
}
|
}
|
||||||
if (draw_mode) {
|
if (draw_mode) {
|
||||||
int w = fl_width(t);
|
int w = (int)fl_width(t);
|
||||||
if (mouse_x>=x && mouse_x<x+w) {
|
if (mouse_x>=x && mouse_x<x+w) {
|
||||||
if (mouse_y>=y-fl_height()+fl_descent()&&mouse_y<=y+fl_descent()) {
|
if (mouse_y>=y-fl_height()+fl_descent()&&mouse_y<=y+fl_descent()) {
|
||||||
int f = current_pos;
|
int f = current_pos;
|
||||||
|
|||||||
Reference in New Issue
Block a user