Fixed regression introduced in r35706. The decorator would not include the

inner row/column of pixels of the resize knob anymore. (18 - 5 - 1 != 13)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35754 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-03-04 09:46:07 +00:00
parent affb47166b
commit 8a17198258
+1 -1
View File
@@ -517,7 +517,7 @@ DefaultDecorator::GetFootprint(BRegion* region)
if (fLook == B_DOCUMENT_WINDOW_LOOK) { if (fLook == B_DOCUMENT_WINDOW_LOOK) {
// include the rectangular resize knob on the bottom right // include the rectangular resize knob on the bottom right
float knobSize = kResizeKnobSize - fBorderWidth - 1.0; float knobSize = kResizeKnobSize - fBorderWidth;
region->Include(BRect(fFrame.right - knobSize, fFrame.bottom - knobSize, region->Include(BRect(fFrame.right - knobSize, fFrame.bottom - knobSize,
fFrame.right, fFrame.bottom)); fFrame.right, fFrame.bottom));
} }