00220 {
00221 LIST* obj;
00222
00223 mViewportTiler.ResetWnd(mOglWnd->width, mOglWnd->height, 5);
00224
00225 ForAllElements(obj, mOglWnd->wndList)
00226 {
00227 OGLWND* child = (OGLWND *) obj->info;
00228 if (child->tags & visibleTag)
00229 {
00230 Window* Window = CastToWindow(GetPeer(child));
00231 if (Window && Window->mAllowReposition)
00232 {
00233 int x, y, w, h;
00234 oglSys.GetDimensions(child, &x, &y, &w, &h);
00235 mViewportTiler.GetPos2d((float)w, (float)h, x, y);
00236
00237 oglSys.SetDimensions(child, x+2, y, w, h);
00238 Window->RepositionViewports();
00239 }
00240 }
00241 }
00242 }