summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-08-29 20:42:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-08-29 20:42:39 +0000
commite9ba94e22d8e358046ade1ec7bdcc3a33924a1c7 (patch)
treeb97672c6bccfbf7d54f96ff9907a490a12c9a3dc /fluid
parent8c479b5ea6ececac26cada3d27baab44963ddb47 (diff)
Fixed snapping for interactive resizing of right and bottom border.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Window_Type.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index 00155c656..52bef08ea 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -703,7 +703,8 @@ void Fl_Window_Type::draw_overlay() {
// - check for distance to the window edge
// * FLTK suggests 10 pixels from the edge
int d;
- int xsp, ysp, mybx_bak = mybx, myby_bak = myby;
+ int xsp, ysp;
+ int mybx_bak = mybx, myby_bak = myby, mybr_bak = mybr, mybt_bak = mybt;
Fl_Widget_Type *mysel = (Fl_Widget_Type *)selection;
@@ -981,8 +982,8 @@ void Fl_Window_Type::draw_overlay() {
}
}
}
- mysx += mybx-mybx_bak; mysr += mybx-mybx_bak;
- mysy += myby-myby_bak; myst += myby-myby_bak;
+ mysx += mybx-mybx_bak; mysr += mybr-mybr_bak;
+ mysy += myby-myby_bak; myst += mybt-mybt_bak;
}
// align the snapping selection box with the box we draw.
sx = mysx; sy = mysy; sr = mysr; st = myst;