aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcState_matrix_repeat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBitmapProcState_matrix_repeat.h')
-rw-r--r--src/core/SkBitmapProcState_matrix_repeat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkBitmapProcState_matrix_repeat.h b/src/core/SkBitmapProcState_matrix_repeat.h
index a7fa089521..8f327955e2 100644
--- a/src/core/SkBitmapProcState_matrix_repeat.h
+++ b/src/core/SkBitmapProcState_matrix_repeat.h
@@ -174,7 +174,7 @@ static void SCALE_NOFILTER_NAME(const SkBitmapProcState& s,
#endif
}
/* loop doesn't adjust count */
- count -= (count>>2);
+ count %= 4;
#endif
uint16_t* xx = (uint16_t*)xy;
for (i = count; i > 0; --i) {