Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: include/core/SkDeviceProperties.h

Issue 14884010: Mask orientation and layout correctly. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add comment about CoreGraphics 'normal' hinting. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDeviceProperties.h
===================================================================
--- include/core/SkDeviceProperties.h (revision 9015)
+++ include/core/SkDeviceProperties.h (working copy)
@@ -46,10 +46,10 @@
};
Orientation getOrientation() {
- return static_cast<Orientation>(fGeometry | kOrientationMask);
+ return static_cast<Orientation>(fGeometry & kOrientationMask);
}
Layout getLayout() {
- return static_cast<Layout>(fGeometry | kLayoutMask);
+ return static_cast<Layout>(fGeometry & kLayoutMask);
}
bool isOrientationKnown() {
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/ports/SkFontHost_mac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698