diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-26 15:23:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-26 15:23:43 +0100 |
| commit | 179771acd25ee5ff8e36a5fd192682d4d55c52af (patch) | |
| tree | f7d32685bccef27e64a6f706e7c0e0c9d099c372 /test/boxtype.cxx | |
| parent | f314ca75feab8c472a9b136fd25636d2d2da68a7 (diff) | |
Fixing FLUID file corruption from issue #653 (#662)
Removing all globals in file writer (#653 )
Fix some static analyser complaints
Valgrind: handle width==0 in GfxDrivers on Wayland and X11
Don't use `Fl_Input_::static_value`, it accesses previous
buffer that may be deleted
Project file write encapsulated, removing globals
Encapsulating project file reader, removing states in glbals
Project i/o increased source code readability
Diffstat (limited to 'test/boxtype.cxx')
| -rw-r--r-- | test/boxtype.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 24d176eb1..a2a92d3a7 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -18,7 +18,7 @@ #include <stdio.h> #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> -#include <FL/Fl_Box.H> +#include <FL/Fl_Button.H> #include <FL/Fl_Scheme_Choice.H> #include <FL/fl_draw.H> @@ -82,7 +82,8 @@ void bt(const char *name, Fl_Boxtype type, int square=0) { N++; x = x*W+10; y = y*H+10; - Fl_Box *b = new Fl_Box(type,x,y,square ? H-20 : W-20,H-20,name); + Fl_Button *b = new Fl_Button(x,y,square ? H-20 : W-20,H-20,name); + b->box(type); b->labelsize(11); if (inactive) { b->color(FL_GREEN); |
