diff options
| author | Derek Foreman <manmower@gmail.com> | 2003-01-29 23:22:33 +0000 |
|---|---|---|
| committer | Derek Foreman <manmower@gmail.com> | 2003-01-29 23:22:33 +0000 |
| commit | b2896c3e5f6f7544b730a7227316f53f3ff63407 (patch) | |
| tree | 70458a04f16bfb7aab3d0d32dd55c37a69a8bc80 /otk/truerendercontrol.hh | |
| parent | 6ab3dc5cb43d3b9345c64a6fbc60c0686d4b1373 (diff) | |
Change the order of the color components in a pixel32 on big endian
Diffstat (limited to 'otk/truerendercontrol.hh')
| -rw-r--r-- | otk/truerendercontrol.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/otk/truerendercontrol.hh b/otk/truerendercontrol.hh index 64559d12..3a5d3e5a 100644 --- a/otk/truerendercontrol.hh +++ b/otk/truerendercontrol.hh @@ -26,7 +26,17 @@ typedef uint16_t pixel16; #else typedef u_int32_t pixel32; typedef u_int16_t pixel16; -#endif +#endif /* HAVE_STDINT_H */ + +#ifdef WORDS_BIGENDIAN +const int default_red_shift=0; +const int default_green_shift=8; +const int default_blue_shift=16; +#else +const int default_red_shift=16; +const int default_green_shift=8; +const int default_blue_shift=0; +#endif /* WORDS_BIGENDIAN */ class TrueRenderControl : public RenderControl { private: |
