aboutsummaryrefslogtreecommitdiffstats
path: root/include/core/SkPoint.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2012-03-12 10:03:41 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-03-12 10:03:41 -0700
commit2a049989f422cb1f59e9e05f413d13745f34a3d1 (patch)
tree594df3f3fc6c1d90a76691a75763ae1beacfdf98 /include/core/SkPoint.h
parent0a6004fdb6c99bccb8bc0bb9686616870dae73f3 (diff)
parent358eae7150db67e5f10071ebb229c5c5b02e6a07 (diff)
downloadexternal_skia-2a049989f422cb1f59e9e05f413d13745f34a3d1.zip
external_skia-2a049989f422cb1f59e9e05f413d13745f34a3d1.tar.gz
external_skia-2a049989f422cb1f59e9e05f413d13745f34a3d1.tar.bz2
am 358eae71: Merge "Skia Merge (revision 3312)"
* commit '358eae7150db67e5f10071ebb229c5c5b02e6a07': Skia Merge (revision 3312)
Diffstat (limited to 'include/core/SkPoint.h')
-rw-r--r--include/core/SkPoint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h
index de7c0ef..d371e64 100644
--- a/include/core/SkPoint.h
+++ b/include/core/SkPoint.h
@@ -442,11 +442,11 @@ struct SK_API SkPoint {
void setOrthog(const SkPoint& vec, Side side = kLeft_Side) {
// vec could be this
SkScalar tmp = vec.fX;
- if (kLeft_Side == side) {
+ if (kRight_Side == side) {
fX = -vec.fY;
fY = tmp;
} else {
- SkASSERT(kRight_Side == side);
+ SkASSERT(kLeft_Side == side);
fX = vec.fY;
fY = -tmp;
}