From 27661181d757145d98f2dc3e02b88ee3fffce9e5 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 19 May 2011 15:57:44 +0000 Subject: [PATCH] Fix windows color order Review URL: http://codereview.appspot.com/4553048/ git-svn-id: http://skia.googlecode.com/svn/trunk@1379 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkPostConfig.h | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index a34fdb4c91..23ce02beb3 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -63,25 +63,6 @@ #endif #endif -/* - * We check to see if the SHIFT value has already been defined. - * if not, we define it ourself to some default values. We default to OpenGL - * order (in memory: r,g,b,a) - */ -#ifndef SK_A32_SHIFT - #ifdef SK_CPU_BENDIAN - #define SK_R32_SHIFT 24 - #define SK_G32_SHIFT 16 - #define SK_B32_SHIFT 8 - #define SK_A32_SHIFT 0 - #else - #define SK_R32_SHIFT 0 - #define SK_G32_SHIFT 8 - #define SK_B32_SHIFT 16 - #define SK_A32_SHIFT 24 - #endif -#endif - /////////////////////////////////////////////////////////////////////////////// #ifndef SkNEW @@ -151,6 +132,25 @@ #endif #endif +/* + * We check to see if the SHIFT value has already been defined. + * if not, we define it ourself to some default values. We default to OpenGL + * order (in memory: r,g,b,a) + */ +#ifndef SK_A32_SHIFT + #ifdef SK_CPU_BENDIAN + #define SK_R32_SHIFT 24 + #define SK_G32_SHIFT 16 + #define SK_B32_SHIFT 8 + #define SK_A32_SHIFT 0 + #else + #define SK_R32_SHIFT 0 + #define SK_G32_SHIFT 8 + #define SK_B32_SHIFT 16 + #define SK_A32_SHIFT 24 + #endif +#endif + // stdlib macros #if 0