From 6551450be4179d9a7a7d8d42150057a868bae354 Mon Sep 17 00:00:00 2001 From: "Jerry.Kirk%Nexwarecorp.com" Date: Fri, 14 Jan 2000 14:44:17 +0000 Subject: [PATCH] Forgot to subtract offset from the lr of a Rect when I hand coded PtDeTranslateRect. This is Photon only. r=kedl --- widget/src/photon/nsWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/photon/nsWindow.cpp b/widget/src/photon/nsWindow.cpp index bf5dadac8240..b28f07c8e39a 100644 --- a/widget/src/photon/nsWindow.cpp +++ b/widget/src/photon/nsWindow.cpp @@ -1689,12 +1689,13 @@ void nsWindow::RawDrawFunc( PtWidget_t * pWidget, PhTile_t * damage ) #else rect.ul.x -= offset.x; rect.ul.y -= offset.y; + rect.lr.x -= offset.x; + rect.lr.y -= offset.y; #endif #endif PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWindow::RawDrawFunc damage rect after translate = <%d,%d,%d,%d>\n", rect.ul.x,rect.ul.y,rect.lr.x,rect.lr.y)); - /* If the damage tile is not within our bounds, do nothing */ if(( rect.ul.x >= area.size.w ) || ( rect.ul.y >= area.size.h ) || ( rect.lr.x < 0 ) || ( rect.lr.y < 0 )) {