From 1aa6c4fed823e74ded911a134065e2619ad53bf1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 2 Feb 2023 20:54:19 +0100 Subject: Fix position() methods that shadow Fl_Widget::position() * `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666) --- test/line_style.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/line_style.cxx') 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 -- cgit v1.2.3