diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-01 20:05:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-01 20:05:42 +0100 |
| commit | a63ad76603accc70747a2073c78139299064c43b (patch) | |
| tree | b64302ca02847a73d9c8445c11023cfc34314dff /src/Fl_Table.cxx | |
| parent | 23e8d831a868774c014993d52eead0cbe105f218 (diff) | |
FLUID refactor and macOS warnings removed (#623)
P renamed to g_project
class Project renamed to class Fluid_Project
fixes macOS type cast warnings
Diffstat (limited to 'src/Fl_Table.cxx')
| -rw-r--r-- | src/Fl_Table.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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. |
