* When painting the view background bitmap, make sure to do

this with a reasonable drawing mode. Otherwise the current
  graphics state setup may not be what we need.
* Automatic white space cleanup. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29309 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-02-24 10:50:47 +00:00
parent 201970d309
commit 2b4f382aac
+5
View File
@@ -1352,6 +1352,9 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
if (rect.IsValid()/* && drawingEngine->Lock()*/) { if (rect.IsValid()/* && drawingEngine->Lock()*/) {
drawingEngine->ConstrainClippingRegion(redraw); drawingEngine->ConstrainClippingRegion(redraw);
drawing_mode oldMode;
drawingEngine->SetDrawingMode(B_OP_COPY, oldMode);
if (fBitmapOptions & B_TILE_BITMAP) { if (fBitmapOptions & B_TILE_BITMAP) {
// tile across entire view // tile across entire view
@@ -1398,6 +1401,8 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
redraw->Exclude(rect); redraw->Exclude(rect);
} }
drawingEngine->SetDrawingMode(oldMode);
// NOTE: It is ok not to reset the clipping, that // NOTE: It is ok not to reset the clipping, that
// would only waste time // would only waste time
// drawingEngine->Unlock(); // drawingEngine->Unlock();