From ec05f78d98d8e38ea34eb1bd73647fa5b8b35f81 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 27 Aug 2024 15:13:32 +0200 Subject: Adding horiizonatl and vertical label margin - sizeof(Fl_Widget) not increased - label positions can be adjusted - try it out in test/label app - full support in FLUD --- src/Fl_Window.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Window.cxx') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 20a39a68e..6ded79b01 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -526,7 +526,7 @@ void Fl_Window::draw_backdrop() { l1.image = image(); if (!active_r() && l1.image && l1.deimage) l1.image = l1.deimage; l1.type = labeltype(); - l1.spacing = 0; + l1.h_margin_ = l1.v_margin_ = l1.spacing = 0; l1.draw(0,0,w(),h(),align()); } } -- cgit v1.2.3