Fix a Visual Studio compiler warning

This commit is contained in:
Albrecht Schlosser 2024-03-18 18:48:28 +01:00
parent 792cfc27e7
commit 7bc75e8962
1 changed files with 1 additions and 1 deletions

View File

@ -1214,7 +1214,7 @@ void Fl_Terminal::set_scrollbar_params(Fl_Scrollbar* scroll, // scrollbar to set
int diff = max - min;
int length = is_hor ? scroll->w() : scroll->h(); // long side of scrollbar in pixels
float tabsize = min / float(max); // fractional size of tab
float minpix = (float)MAX(10, scrollbar_actual_size()); // scrollbar_size preferred, 10pix min (**)
float minpix = float(MAX(10, scrollbar_actual_size())); // scrollbar_size preferred, 10pix min (**)
float minfrac = minpix / length; // slide_size wants a fraction
tabsize = MAX(minfrac, tabsize); // use best fractional size
scroll->slider_size(tabsize); // size of slider's tab