From 88ca2ea14ba6651404cd4ea347ac8f06afdd0558 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 14 Jan 2025 00:06:33 +1300 Subject: Ensured Widgets will remove themselves from a Group upon dealloc and Groups won't inadvertantly dealloc Widgets upon Clear --- src/c_fl_scroll.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/c_fl_scroll.cpp') diff --git a/src/c_fl_scroll.cpp b/src/c_fl_scroll.cpp index ab63827..b3d2c14 100644 --- a/src/c_fl_scroll.cpp +++ b/src/c_fl_scroll.cpp @@ -56,8 +56,12 @@ void free_fl_scroll(SCROLL s) { -void fl_scroll_clear(SCROLL s) { - reinterpret_cast(s)->clear(); +void * fl_scroll_hscrollbar(SCROLL s) { + return &static_cast(s)->hscrollbar; +} + +void * fl_scroll_scrollbar(SCROLL s) { + return &static_cast(s)->scrollbar; } -- cgit