summaryrefslogtreecommitdiff
path: root/test/line_style.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-02 20:54:19 +0100
committerGitHub <noreply@github.com>2023-02-02 20:54:19 +0100
commit1aa6c4fed823e74ded911a134065e2619ad53bf1 (patch)
tree239e65b0af1a1a39012b4187894274e860350235 /test/line_style.cxx
parent59d3b2e9fd10bdf14592e82ced422346ecd7204e (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 'test/line_style.cxx')
-rw-r--r--test/line_style.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/line_style.cxx b/test/line_style.cxx
index f1517ee86..67b1fde08 100644
--- a/test/line_style.cxx
+++ b/test/line_style.cxx
@@ -47,10 +47,10 @@ void test_box::draw() {
dashes[3] = char(sliders[8]->value());
dashes[4] = 0;
fl_line_style(
- choice[0]->mvalue()->argument() +
+ (int)(choice[0]->mvalue()->argument() +
choice[1]->mvalue()->argument() +
- choice[2]->mvalue()->argument(),
- long(sliders[3]->value()), // width
+ choice[2]->mvalue()->argument()),
+ (int)(sliders[3]->value()), // width
dashes);
// draw the defined fl_rect and fl_vertex first and then