* some disabled code that was supposed to reveal more info on why

it can happen that a view's background region is outside the
  framebuffer... for some weird reason, it doesn't get triggered
  though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22725 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-10-25 18:20:03 +00:00
parent fcfbb8aa6c
commit cf91c9e850
1 changed files with 14 additions and 0 deletions

View File

@ -1270,6 +1270,20 @@ ViewLayer::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
// this version of FillRegion ignores any
// clipping, that's why "redraw" needs to
// be correct
// see #634
// if (redraw->Frame().left < 0 || redraw->Frame().top < 0) {
// char message[1024];
// BRect c = effectiveClipping->Frame();
// BRect w = windowContentClipping->Frame();
// BRect r = redraw->Frame();
// sprintf(message, "invalid background: current clipping: (%d, %d)->(%d, %d), "
// "window content: (%d, %d)->(%d, %d), redraw: (%d, %d)->(%d, %d)",
// (int)c.left, (int)c.top, (int)c.right, (int)c.bottom,
// (int)w.left, (int)w.top, (int)w.right, (int)w.bottom,
// (int)r.left, (int)r.top, (int)r.right, (int)r.bottom);
// debugger(message);
// }
drawingEngine->FillRegion(*redraw, overlayCookie != NULL
? overlayCookie->Color() : fViewColor);
}