Bug 793690. Fix the obvious typos for infinite rects in SetScissorRect. r=bas
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 04 Oct 2012 00:30:56 +1300
changeset 109161 8a788d3eccd155b2a2029f3223b0a3e224e0e225
parent 109160 ffcdd896a1fa7bb419077873da59d2d2ed9e3271
child 109162 715eda9ee77298088e1abf5b8528032a9c2e1d08
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersbas
bugs793690
milestone18.0a1
Bug 793690. Fix the obvious typos for infinite rects in SetScissorRect. r=bas
gfx/2d/DrawTargetD2D.cpp
--- a/gfx/2d/DrawTargetD2D.cpp
+++ b/gfx/2d/DrawTargetD2D.cpp
@@ -2706,17 +2706,17 @@ DrawTargetD2D::SetScissorToRect(IntRect 
 {
   D3D10_RECT rect;
   if (aRect) {
     rect.left = aRect->x;
     rect.right = aRect->XMost();
     rect.top = aRect->y;
     rect.bottom = aRect->YMost();
   } else {
-    rect.left = rect.left = INT32_MIN;
-    rect.right = rect.top = INT32_MAX;
+    rect.left = rect.top = INT32_MIN;
+    rect.right = rect.bottom = INT32_MAX;
   }
 
   mDevice->RSSetScissorRects(1, &rect);
 }
 
 }
 }