mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Bugfix from Matthias (thanks Matt)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-4
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Tile.cxx,v 1.5 1999/01/07 19:17:27 mike Exp $"
|
// "$Id: Fl_Tile.cxx,v 1.5.2.1 1999/05/25 05:33:56 bill Exp $"
|
||||||
//
|
//
|
||||||
// Tile widget for the Fast Light Tool Kit (FLTK).
|
// Tile widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -39,7 +39,7 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) {
|
|||||||
Fl_Widget*const* a = array();
|
Fl_Widget*const* a = array();
|
||||||
short* p = sizes();
|
short* p = sizes();
|
||||||
p += 8; // skip group & resizable's saved size
|
p += 8; // skip group & resizable's saved size
|
||||||
for (int i=children(); i--;) {
|
for (int i=children(); i--; p += 4) {
|
||||||
Fl_Widget* o = *a++;
|
Fl_Widget* o = *a++;
|
||||||
if (o == resizable()) continue;
|
if (o == resizable()) continue;
|
||||||
int X = o->x();
|
int X = o->x();
|
||||||
@@ -59,7 +59,6 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) {
|
|||||||
if (t == oiy || t>oiy && B<newy || t<oiy && B>newy) B = newy;
|
if (t == oiy || t>oiy && B<newy || t<oiy && B>newy) B = newy;
|
||||||
}
|
}
|
||||||
o->damage_resize(X,Y,R-X,B-Y);
|
o->damage_resize(X,Y,R-X,B-Y);
|
||||||
p += 4;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,5 +195,5 @@ int Fl_Tile::handle(int event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Tile.cxx,v 1.5 1999/01/07 19:17:27 mike Exp $".
|
// End of "$Id: Fl_Tile.cxx,v 1.5.2.1 1999/05/25 05:33:56 bill Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user