aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/config
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-18 21:43:03 +0000
committerGravatar scroggo <scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-18 21:43:03 +0000
commitb66365f5dd8cba718e1657ee3c85b4406e55f17d (patch)
tree60779c569b5bedf5f67170cb9ff8d5d62b16f71a /include/config
parent3f0dcf96c332b1b0cb9b63043d16607e8702259b (diff)
Updates to the unix sample app.
Rather than placing pixels, use XPutImage to place the bitmap on screen. Modify the color arrangements for 8888 when building the sample app, so they agree with X. Add a title to simple sample. Include SkTouchGesture. git-svn-id: http://skia.googlecode.com/svn/trunk@963 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/config')
-rw-r--r--include/config/SkUserConfig.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h
index 13169cae99..aa2e6cf40b 100644
--- a/include/config/SkUserConfig.h
+++ b/include/config/SkUserConfig.h
@@ -141,5 +141,14 @@
//#define SK_SUPPORT_UNITTEST
#endif
+/* Change the ordering to work in X windows.
+ */
+#ifdef SK_SAMPLES_FOR_X
+ #define SK_R32_SHIFT 16
+ #define SK_G32_SHIFT 8
+ #define SK_B32_SHIFT 0
+ #define SK_A32_SHIFT 24
+#endif
+
#endif