зеркало из https://github.com/mozilla/moz-skia.git
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
This commit is contained in:
Родитель
346ff6c684
Коммит
27661181d7
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче