diff options
author | Benjamin Jacobs <benja@myrealbox.com> | 2008-07-13 18:14:12 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-07-13 18:14:12 +0200 |
commit | 0196965f9c09e0b3bbfff847c3aed16b59be959f (patch) | |
tree | 7e97174bf13785c40d2ba9464afce2627d0fa6a8 | |
parent | 3852ec05b8375ac439d9bde13f959068bfb481d7 (diff) |
Fix bytes order on big endian
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | libspectre/spectre-device.c | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 011f44e..0b7264a 100644 --- a/configure.ac +++ b/configure.ac @@ -55,6 +55,7 @@ AC_PROG_CC AC_ISC_POSIX AC_PROG_CC_STDC AC_STDC_HEADERS +AC_C_BIGENDIAN LIBGS_REQUIRED="8.61" diff --git a/libspectre/spectre-device.c b/libspectre/spectre-device.c index 308ef35..1d05941 100644 --- a/libspectre/spectre-device.c +++ b/libspectre/spectre-device.c @@ -228,9 +228,14 @@ spectre_device_render (SpectreDevice *device, rc->y_scale * rc->y_dpi); args[arg++] = dsp_format = _spectre_strdup_printf ("-dDisplayFormat=%d", DISPLAY_COLORS_RGB | - DISPLAY_UNUSED_LAST | DISPLAY_DEPTH_8 | +#ifdef WORDS_BIGENDIAN + DISPLAY_UNUSED_FIRST | + DISPLAY_BIGENDIAN | +#else + DISPLAY_UNUSED_LAST | DISPLAY_LITTLEENDIAN | +#endif DISPLAY_TOPFIRST); args[arg++] = dsp_handle = _spectre_strdup_printf ("-sDisplayHandle=16#%llx", (unsigned long long int)device); |