From f285f18f29335bd8f604a875cd4e091bde4bb6e8 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 9 Sep 2008 18:55:37 +0200 Subject: check for more than 3 control points --- src/pnmcurvedit.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/pnmcurvedit.cxx') diff --git a/src/pnmcurvedit.cxx b/src/pnmcurvedit.cxx index c6a974b..c04979c 100644 --- a/src/pnmcurvedit.cxx +++ b/src/pnmcurvedit.cxx @@ -66,13 +66,9 @@ int main(int argc, char **argv) { Fl_Double_Window window(300, 300, "pnmcurvedit"); ce = new CurveEditor(0, 0, 300, 300); - ce->add_point(0.0, 0.0); - ce->add_point(0.5, 0.5); - ce->add_point(1.0, 1.0); ce->callback(editor_cb, NULL); - + window.resizable(ce); window.show(argc, argv); - Fl::add_fd(0, FL_READ, stdin_cb); return Fl::run(); -- cgit v1.2.3