From 4bc4736eb7409a84185b42dc9cb9c16388519383 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 8 Dec 2015 09:39:42 +0000 Subject: Replaced call to Fl_Window::resize() by call to Fl_Widget::position() that is enough. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- examples/shapedwindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/shapedwindow.cxx b/examples/shapedwindow.cxx index bcfabd20c..f614f98da 100644 --- a/examples/shapedwindow.cxx +++ b/examples/shapedwindow.cxx @@ -46,7 +46,7 @@ public: else if (event == FL_DRAG) { int deltax = Fl::event_x_root() - fromx; int deltay = Fl::event_y_root() - fromy; - window()->resize(winx + deltax, winy + deltay, window()->w(), window()->h()); + window()->position(winx + deltax, winy + deltay); return 1; } return Fl_Box::handle(event); -- cgit v1.2.3