X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.hh;fp=otk%2Ftruerendercontrol.hh;h=3a5d3e5aa3847e8ce54f297e54e6e0f7e2205ffb;hb=b2896c3e5f6f7544b730a7227316f53f3ff63407;hp=64559d12e8e00d3c6f0382a86be9ab33f71c44bd;hpb=6ab3dc5cb43d3b9345c64a6fbc60c0686d4b1373;p=chaz%2Fopenbox 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: