* lock pattern drawing to the true view origin, independend of the views

position on screen (fixes drawing glitches in patterns when the view
  was moved on screen (for example because the parent window got moved))


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23089 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-12-08 22:59:04 +00:00
parent 8a21dd58b6
commit 48882cec96
2 changed files with 4 additions and 4 deletions

View File

@ -467,8 +467,8 @@ pop_state(ViewLayer *view)
{
view->PopState();
IntPoint p = view->ScrollingOffset();
p += IntPoint(view->CurrentState()->Origin());
BPoint p(0, 0);
view->ConvertToScreenForDrawing(&p);
view->Window()->GetDrawingEngine()->SetDrawState(
view->CurrentState(), p.x, p.y);
}

View File

@ -3179,8 +3179,8 @@ ServerWindow::_UpdateDrawState(ViewLayer* layer)
// "offsets" passed below would need to be updated again
DrawingEngine* drawingEngine = fWindowLayer->GetDrawingEngine();
if (layer && drawingEngine) {
IntPoint p = layer->ScrollingOffset();
p += IntPoint(layer->CurrentState()->Origin());
BPoint p(0, 0);
layer->ConvertToScreenForDrawing(&p);
drawingEngine->SetDrawState(layer->CurrentState(), p.x, p.y);
}
}