Use the view bitmap options also when drawing the bitmap. This way, someone
can pass filter options to SetViewBitmap() as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29753 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1719f7a63e
commit
7eed63a18b
@ -1362,7 +1362,7 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
|
||||
while (rect.top < redraw->Frame().bottom) {
|
||||
while (rect.left < redraw->Frame().right) {
|
||||
drawingEngine->DrawBitmap(fViewBitmap,
|
||||
fBitmapSource, rect);
|
||||
fBitmapSource, rect, fBitmapOptions);
|
||||
rect.OffsetBy(rect.Width() + 1, 0.0);
|
||||
}
|
||||
rect.OffsetBy(start - rect.left, rect.Height() + 1);
|
||||
@ -1374,7 +1374,7 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
|
||||
|
||||
while (rect.left < redraw->Frame().right) {
|
||||
drawingEngine->DrawBitmap(fViewBitmap, fBitmapSource,
|
||||
rect);
|
||||
rect, fBitmapOptions);
|
||||
rect.OffsetBy(rect.Width() + 1, 0.0);
|
||||
}
|
||||
// remove horizontal stripe from clipping
|
||||
@ -1386,7 +1386,7 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
|
||||
|
||||
while (rect.top < redraw->Frame().bottom) {
|
||||
drawingEngine->DrawBitmap(fViewBitmap, fBitmapSource,
|
||||
rect);
|
||||
rect, fBitmapOptions);
|
||||
rect.OffsetBy(0.0, rect.Height() + 1);
|
||||
}
|
||||
// remove vertical stripe from clipping
|
||||
@ -1397,7 +1397,7 @@ View::Draw(DrawingEngine* drawingEngine, BRegion* effectiveClipping,
|
||||
// no tiling at all
|
||||
|
||||
drawingEngine->DrawBitmap(fViewBitmap, fBitmapSource,
|
||||
rect);
|
||||
rect, fBitmapOptions);
|
||||
redraw->Exclude(rect);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user