Removed work-around for now fixed bug #2355.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25882 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -978,18 +978,6 @@ TermView::Draw(BRect updateRect)
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// TODO: Work-around for #2355: updateRect is sometimes way larger than the
|
|
||||||
// clipping region frame). Determine the minimal update rect.
|
|
||||||
BRegion region;
|
|
||||||
GetClippingRegion(®ion);
|
|
||||||
if (region.CountRects() > 0) {
|
|
||||||
BRect clippingRect(region.Frame());
|
|
||||||
//if (clippingRect != updateRect)
|
|
||||||
//debug_printf(" clipping rect: (%f, %f) - (%f, %f)\n",
|
|
||||||
//clippingRect.left, clippingRect.top, clippingRect.right, clippingRect.bottom);
|
|
||||||
updateRect = clippingRect;
|
|
||||||
}
|
|
||||||
|
|
||||||
_SynchronizeWithTextBuffer(&updateRect);
|
_SynchronizeWithTextBuffer(&updateRect);
|
||||||
|
|
||||||
int32 x1 = (int32)(updateRect.left) / fFontWidth;
|
int32 x1 = (int32)(updateRect.left) / fFontWidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user