From 0de2f00de7698f041f34359e28d93e68f7b6eddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 3 Jan 2006 12:07:11 +0000 Subject: [PATCH] updated some comments git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15814 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index e2a7101eea..5efeb7bed1 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -501,6 +501,8 @@ DefaultDecorator::_DoLayout() // calculate left/top/right/bottom borders if (fBorderWidth > 0) { + // NOTE: no overlapping, the left and right border rects + // don't include the corners! fLeftBorder.Set(_frame.left - fBorderWidth, _frame.top, _frame.left - 1, _frame.bottom); @@ -513,7 +515,7 @@ DefaultDecorator::_DoLayout() fBottomBorder.Set(_frame.left - fBorderWidth, _frame.bottom + 1, _frame.right + fBorderWidth, _frame.bottom + fBorderWidth); } else { - // no border ... (?) useful when displaying windows that are just images + // no border fLeftBorder.Set(0.0, 0.0, -1.0, -1.0); fRightBorder.Set(0.0, 0.0, -1.0, -1.0); fTopBorder.Set(0.0, 0.0, -1.0, -1.0); @@ -886,6 +888,7 @@ DefaultDecorator::_LayoutTabItems(const BRect& tabRect) // calulate close rect based on the tab rectangle if (Flags() & B_NOT_CLOSABLE) { + // the close rect has no width _closerect.Set(tabRect.left + offset, tabRect.top + offset, tabRect.left + offset, tabRect.top + offset + size); } else { @@ -895,6 +898,7 @@ DefaultDecorator::_LayoutTabItems(const BRect& tabRect) // calulate zoom rect based on the tab rectangle if (Flags() & B_NOT_ZOOMABLE) { + // the zoom rect has no width _zoomrect.Set(tabRect.right, tabRect.top + offset, tabRect.right, tabRect.top + offset + size); } else {