X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Ftruerendercontrol.hh;h=b44969aa2ff0489dbf43251c489d12d778a33e38;hb=83bfa01b0bf361d4a2354e5ef0f48ed759e0eab3;hp=64559d12e8e00d3c6f0382a86be9ab33f71c44bd;hpb=edcbed448ef2d341edbca47e938b4e86673a99a0;p=chaz%2Fopenbox diff --git a/otk/truerendercontrol.hh b/otk/truerendercontrol.hh index 64559d12..b44969aa 100644 --- a/otk/truerendercontrol.hh +++ b/otk/truerendercontrol.hh @@ -26,7 +26,19 @@ 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; +const int endian=MSBFirst; +#else +const int default_red_shift=16; +const int default_green_shift=8; +const int default_blue_shift=0; +const int endian=LSBFirst; +#endif /* WORDS_BIGENDIAN */ class TrueRenderControl : public RenderControl { private: