summaryrefslogtreecommitdiff
path: root/examples/shapedwindow.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-12-08 09:39:42 +0000
committerManolo Gouy <Manolo>2015-12-08 09:39:42 +0000
commit4bc4736eb7409a84185b42dc9cb9c16388519383 (patch)
tree46c5da3e65ec50de5505104432668457be8a3fe3 /examples/shapedwindow.cxx
parentade095f240676888176ba6fb3a4f1c21fd3bc2ab (diff)
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
Diffstat (limited to 'examples/shapedwindow.cxx')
-rw-r--r--examples/shapedwindow.cxx2
1 files changed, 1 insertions, 1 deletions
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);