diff options
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 2aff4281ad..38e376b511 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -1722,13 +1722,24 @@ void adjust_rect_top_right(const std::string& control, const LLRect& window) } } +// *TODO: Adjust based on XUI XML +const S32 TOOLBAR_HEIGHT = 64; + +void adjust_rect_bottom_left(const std::string& control, const LLRect& window) +{ + LLRect r = gSavedSettings.getRect(control); + if (r.mLeft == 0 && r.mBottom == 0) + { + r.setOriginAndSize(0, TOOLBAR_HEIGHT, r.getWidth(), r.getHeight()); + gSavedSettings.setRect(control, r); + } +} + void adjust_rect_bottom_center(const std::string& control, const LLRect& window) { LLRect r = gSavedSettings.getRect(control); if (r.mLeft == 0 && r.mBottom == 0) { - // *TODO: Adjust based on XUI XML - const S32 TOOLBAR_HEIGHT = 64; r.setOriginAndSize( window.getWidth()/2 - r.getWidth()/2, TOOLBAR_HEIGHT, @@ -1787,6 +1798,21 @@ void LLViewerWindow::adjustRectanglesForFirstUse(const LLRect& window) adjust_rect_top_left("FloaterBuildOptionsRect", window); + adjust_rect_bottom_left("FloaterActiveSpeakersRect", window); + + adjust_rect_bottom_left("FloaterBumpRect", window); + + adjust_rect_bottom_left("FloaterRegionInfo", window); + + adjust_rect_bottom_left("FloaterEnvRect", window); + + adjust_rect_bottom_left("FloaterAdvancedSkyRect", window); + + adjust_rect_bottom_left("FloaterAdvancedWaterRect", window); + + adjust_rect_bottom_left("FloaterDayCycleRect", window); + + // bottom-right r = gSavedSettings.getRect("FloaterInventoryRect"); if (r.mLeft == 0 && r.mBottom == 0) |