Index: cmake/SkUserConfig.h.in |
diff --git a/cmake/SkUserConfig.h.in b/cmake/SkUserConfig.h.in |
index 0649656e7fb90704daa480e3f28127af3f8f8253..99da2545c71041ffc10fde0b1512578de8b1080c 100644 |
--- a/cmake/SkUserConfig.h.in |
+++ b/cmake/SkUserConfig.h.in |
@@ -10,6 +10,15 @@ |
#undef SK_RELEASE |
#endif |
+/* Change the ordering to work in X windows. |
+ */ |
+#if ${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 |
+ |
#cmakedefine01 SK_MESA |
#endif |