Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index 19170048f92895917dbd874f34c079b0f8225683..0538a12aad02bd8972454da690321debfddce48d 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -102,13 +102,13 @@ static void assert_ifDrawnTo(skiatest::Reporter* reporter, |
for (int y = 0; y < bm.height(); ++y) { |
for (int x = 0; x < bm.width(); ++x) { |
if (shouldBeDrawn) { |
- if (0 == *bm.getAddr32(x, y)) { |
+ if (SK_ColorTRANSPARENT == *bm.getAddr32(x, y)) { |
REPORTER_ASSERT(reporter, false); |
return; |
} |
} else { |
// should not be drawn |
- if (*bm.getAddr32(x, y)) { |
+ if (SK_ColorTRANSPARENT != *bm.getAddr32(x, y)) { |
REPORTER_ASSERT(reporter, false); |
return; |
} |