* 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:
parent
8a21dd58b6
commit
48882cec96
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user