diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-02 20:54:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-02 20:54:19 +0100 |
| commit | 1aa6c4fed823e74ded911a134065e2619ad53bf1 (patch) | |
| tree | 239e65b0af1a1a39012b4187894274e860350235 /src/Fl_Tile.cxx | |
| parent | 59d3b2e9fd10bdf14592e82ced422346ecd7204e (diff) | |
Fix position() methods that shadow Fl_Widget::position()
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666)
Diffstat (limited to 'src/Fl_Tile.cxx')
| -rw-r--r-- | src/Fl_Tile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx index dd02d3757..a5de6039d 100644 --- a/src/Fl_Tile.cxx +++ b/src/Fl_Tile.cxx @@ -93,7 +93,7 @@ Pass zero as \p oldx or \p oldy to disable drag in that direction. */ -void Fl_Tile::position(int oldx, int oldy, int newx, int newy) { +void Fl_Tile::move_intersection(int oldx, int oldy, int newx, int newy) { Fl_Widget*const* a = array(); Fl_Rect *p = bounds(); p += 2; // skip group & resizable's saved size @@ -268,7 +268,7 @@ int Fl_Tile::handle(int event) { else if (newy > r->y()+r->h()) newy = r->y()+r->h(); } else newy = sy; - position(sx,sy,newx,newy); + move_intersection(sx, sy, newx, newy); if (event == FL_DRAG) { set_changed(); do_callback(FL_REASON_DRAGGED); |
