diff options
author | jsorg71 <jsorg71> | 2005-07-10 19:17:09 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-07-10 19:17:09 +0000 |
commit | d349f6920a4d97632d0216fbd0d48de50498eb4b (patch) | |
tree | 4677e525c731873e0d454b6337d18fa6734eaae2 /vnc | |
parent | 196bfa81d6eb601d35024f117e8aa988657c8569 (diff) | |
download | xrdp-proprietary-d349f6920a4d97632d0216fbd0d48de50498eb4b.tar.gz xrdp-proprietary-d349f6920a4d97632d0216fbd0d48de50498eb4b.zip |
some more big endian fixes
Diffstat (limited to 'vnc')
-rw-r--r-- | vnc/vnc.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -949,7 +949,11 @@ int lib_mod_connect(struct vnc* v) { out_uint8(pixel_format, 8); /* bits per pixel */ out_uint8(pixel_format, 8); /* depth */ +#if defined(B_ENDIAN) + out_uint8(pixel_format, 1); /* big endian */ +#else out_uint8(pixel_format, 0); /* big endian */ +#endif out_uint8(pixel_format, 0); /* true color flag */ out_uint16_be(pixel_format, 0); /* red max */ out_uint16_be(pixel_format, 0); /* green max */ @@ -963,7 +967,11 @@ int lib_mod_connect(struct vnc* v) { out_uint8(pixel_format, 16); /* bits per pixel */ out_uint8(pixel_format, 16); /* depth */ +#if defined(B_ENDIAN) + out_uint8(pixel_format, 1); /* big endian */ +#else out_uint8(pixel_format, 0); /* big endian */ +#endif out_uint8(pixel_format, 1); /* true color flag */ out_uint16_be(pixel_format, 31); /* red max */ out_uint16_be(pixel_format, 63); /* green max */ |