From cf91c9e850bc954b4983bd001a7b5dcd5b539b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 25 Oct 2007 18:20:03 +0000 Subject: [PATCH] * 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 --- src/servers/app/ViewLayer.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/servers/app/ViewLayer.cpp b/src/servers/app/ViewLayer.cpp index 0bb832f418..7930f0774a 100644 --- a/src/servers/app/ViewLayer.cpp +++ b/src/servers/app/ViewLayer.cpp @@ -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); }