summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-11-24 23:35:50 +0900
committermetalefty <meta@vmeta.jp>2017-12-01 11:20:42 +0900
commit788ae1467a806e132d9756ec99e8345491bd676f (patch)
tree917edbce7124ebf842865d972ad6d05e096b6217 /libxrdp
parent8d951ab02e23893247cb3a7744c4980071411fea (diff)
downloadxrdp-proprietary-788ae1467a806e132d9756ec99e8345491bd676f.tar.gz
xrdp-proprietary-788ae1467a806e132d9756ec99e8345491bd676f.zip
xrdp_sec: constify color depth value
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_sec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index fe7a460a..4de6c9ed 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -1608,10 +1608,10 @@ xrdp_sec_process_mcs_data_CS_CORE(struct xrdp_sec* self, struct stream* s)
g_writeln("colorDepth 0x%4.4x (0xca00 4bpp 0xca01 8bpp)", colorDepth);
switch (colorDepth)
{
- case 0xca00: /* RNS_UD_COLOR_4BPP */
+ case RNS_UD_COLOR_4BPP:
self->rdp_layer->client_info.bpp = 4;
break;
- case 0xca01: /* RNS_UD_COLOR_8BPP */
+ case RNS_UD_COLOR_8BPP:
self->rdp_layer->client_info.bpp = 8;
break;
}
@@ -1630,19 +1630,19 @@ xrdp_sec_process_mcs_data_CS_CORE(struct xrdp_sec* self, struct stream* s)
switch (postBeta2ColorDepth)
{
- case 0xca00: /* RNS_UD_COLOR_4BPP */
+ case RNS_UD_COLOR_4BPP:
self->rdp_layer->client_info.bpp = 4;
break;
- case 0xca01: /* RNS_UD_COLOR_8BPP */
+ case RNS_UD_COLOR_8BPP :
self->rdp_layer->client_info.bpp = 8;
break;
- case 0xca02: /* RNS_UD_COLOR_16BPP_555 */
+ case RNS_UD_COLOR_16BPP_555:
self->rdp_layer->client_info.bpp = 15;
break;
- case 0xca03: /* RNS_UD_COLOR_16BPP_565 */
+ case RNS_UD_COLOR_16BPP_565:
self->rdp_layer->client_info.bpp = 16;
break;
- case 0xca04: /* RNS_UD_COLOR_24BPP */
+ case RNS_UD_COLOR_24BPP:
self->rdp_layer->client_info.bpp = 24;
break;
}