ActivityMonitor :

* Add a 2px bottom padding when used as a replicant, to account for possible 
   outline.  (Thanks stippi!)
 * Fix style violation (Thanks Axel!)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35092 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2010-01-15 23:23:22 +00:00
parent 8ad1ef2643
commit fbb82a6282

View File

@ -1235,8 +1235,12 @@ ActivityView::_LegendHeight() const
BAutolock _(fSourcesLock);
int32 rows = (fSources.CountItems() + 1) / 2;
int32 boldMargin = Parent() &&
(Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0 ? 2 : 0;
return rows * (4 + ceilf(fontHeight.ascent)
+ ceilf(fontHeight.descent) + ceilf(fontHeight.leading));
+ ceilf(fontHeight.descent) + ceilf(fontHeight.leading)) + boldMargin;
}
@ -1448,7 +1452,7 @@ ActivityView::_LoadBackgroundInfo(bool watch)
if (desktopNode.GetAttrInfo(kDesktopAttrName, &info) != B_OK)
return;
char *buffer = new char[info.size];
char* buffer = new char[info.size];
if (desktopNode.ReadAttr(kDesktopAttrName, B_MESSAGE_TYPE, 0,
buffer, (size_t)info.size) == info.size) {
BMessage message;