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 /libspectre | |
parent | 3852ec05b8375ac439d9bde13f959068bfb481d7 (diff) |
Fix bytes order on big endian
Diffstat (limited to 'libspectre')
-rw-r--r-- | libspectre/spectre-device.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |