diff options
Diffstat (limited to 'skia')
-rw-r--r-- | skia/include/corecg/SkUserConfig.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/skia/include/corecg/SkUserConfig.h b/skia/include/corecg/SkUserConfig.h index 34340e1..97ab2fc 100644 --- a/skia/include/corecg/SkUserConfig.h +++ b/skia/include/corecg/SkUserConfig.h @@ -145,12 +145,19 @@ typedef unsigned uint32_t; #error Read the comment at this location #endif +#ifdef LINUX2 +#define SK_A32_SHIFT 24 +#define SK_B32_SHIFT 16 +#define SK_G32_SHIFT 8 +#define SK_R32_SHIFT 0 +#else // For Linux we want to match the most common X visual, which is // ARGB (in registers) #define SK_A32_SHIFT 24 #define SK_R32_SHIFT 16 #define SK_G32_SHIFT 8 #define SK_B32_SHIFT 0 +#endif #endif |