From d26af39650e7d56c8d8941041d54259fcf81733e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 11 Mar 2006 19:37:28 +0000 Subject: [PATCH] actually add the converted rects to the region git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16716 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DrawState.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/servers/app/DrawState.cpp b/src/servers/app/DrawState.cpp index c82a0d0839..47a89e70e0 100644 --- a/src/servers/app/DrawState.cpp +++ b/src/servers/app/DrawState.cpp @@ -367,12 +367,18 @@ DrawState::Transform(BRegion* region) const // reset bottom right to pixel "index" rb.x++; rb.y++; + // add rect to converted region + // NOTE/TODO: the rect would not have to go + // through the whole interection test process, + // it is guaranteed not to overlap with any rect + // already contained in the region + converted.AddRect(BRect(lt, rb)); } *region = converted; } } -// InverseTransform + void DrawState::InverseTransform(BPoint* point) const {