summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-07-10 19:17:09 +0000
committerjsorg71 <jsorg71>2005-07-10 19:17:09 +0000
commitd349f6920a4d97632d0216fbd0d48de50498eb4b (patch)
tree4677e525c731873e0d454b6337d18fa6734eaae2 /vnc
parent196bfa81d6eb601d35024f117e8aa988657c8569 (diff)
downloadxrdp-proprietary-d349f6920a4d97632d0216fbd0d48de50498eb4b.tar.gz
xrdp-proprietary-d349f6920a4d97632d0216fbd0d48de50498eb4b.zip
some more big endian fixes
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 1e895b81..e68aa121 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -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 */