From f9e453e3d456514066e8ecbed9fbac93a588a0d0 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 00:53:56 +1300 Subject: Using the type method is now more consistent --- src/c_fl_scroll.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/c_fl_scroll.cpp') diff --git a/src/c_fl_scroll.cpp b/src/c_fl_scroll.cpp index 59bb8c2..5fd3240 100644 --- a/src/c_fl_scroll.cpp +++ b/src/c_fl_scroll.cpp @@ -71,8 +71,12 @@ void fl_scroll_to(SCROLL s, int x, int y) { static_cast(s)->scroll_to(x, y); } -void fl_scroll_set_type(SCROLL s, int t) { - static_cast(s)->type(t); +int fl_scroll_xposition(SCROLL s) { + return static_cast(s)->xposition(); +} + +int fl_scroll_yposition(SCROLL s) { + return static_cast(s)->yposition(); } @@ -86,14 +90,6 @@ void fl_scroll_set_size(SCROLL s, int t) { static_cast(s)->scrollbar_size(t); } -int fl_scroll_xposition(SCROLL s) { - return static_cast(s)->xposition(); -} - -int fl_scroll_yposition(SCROLL s) { - return static_cast(s)->yposition(); -} - -- cgit