From a63ad76603accc70747a2073c78139299064c43b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 1 Jan 2023 20:05:42 +0100 Subject: FLUID refactor and macOS warnings removed (#623) P renamed to g_project class Project renamed to class Fluid_Project fixes macOS type cast warnings --- src/Fl_Table.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Table.cxx') diff --git a/src/Fl_Table.cxx b/src/Fl_Table.cxx index baf06249e..91ebe262e 100644 --- a/src/Fl_Table.cxx +++ b/src/Fl_Table.cxx @@ -394,8 +394,8 @@ int Fl_Table::find_cell(TableContext context, int R, int C, int &X, int &Y, int X=Y=W=H=0; return(-1); } - X = col_scroll_position(C) - hscrollbar->value() + tix; - Y = row_scroll_position(R) - vscrollbar->value() + tiy; + X = (int)col_scroll_position(C) - hscrollbar->value() + tix; + Y = (int)row_scroll_position(R) - vscrollbar->value() + tiy; W = col_width(C); H = row_height(R); @@ -580,8 +580,8 @@ void Fl_Table::table_scrolled() { Calls recall_dimensions(), and recalculates scrollbar sizes. */ void Fl_Table::table_resized() { - table_h = row_scroll_position(rows()); - table_w = col_scroll_position(cols()); + table_h = (int)row_scroll_position(rows()); + table_w = (int)col_scroll_position(cols()); recalc_dimensions(); // Recalc scrollbar sizes // Clamp scrollbar value() after a resize. -- cgit v1.2.3