diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-22 08:16:56 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-22 08:16:56 +0100 |
| commit | 6cc394a39eb4537927bc7d4d7d5959f5d23a9761 (patch) | |
| tree | ba1cf80a24350e57fd77d554349d070fc2739f01 /test | |
| parent | ffbc66321c9e69f57c8095f2d4b6e6f9b1b8241e (diff) | |
| parent | f1b00c6637ad5752fa70eb1a8c1ac8ba274210f7 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'test')
| -rw-r--r-- | test/coordinates.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/coordinates.cxx b/test/coordinates.cxx index bb3651daf..f3f92c018 100644 --- a/test/coordinates.cxx +++ b/test/coordinates.cxx @@ -17,6 +17,7 @@ #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Window.H> +#include "../src/flstring.h" // fl_snprintf() #include <stdio.h> class Box : public Fl_Box { @@ -104,7 +105,7 @@ protected: result = 1; if (0 < Fl::event_x() && Fl::event_x() < w() && 0 < Fl::event_y() && Fl::event_y() < h()) { - snprintf(buffer, 128-1, fmt, Fl::event_x(), Fl::event_y()); + fl_snprintf(buffer, 128-1, fmt, Fl::event_x(), Fl::event_y()); message_box->copy_label(buffer); } else message_box->copy_label(""); break; |
