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
This commit is contained in:
Matthias Melcher 2005-08-29 20:42:39 +00:00
parent 8c479b5ea6
commit e9ba94e22d

View File

@ -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;