Use the configured color-depth

The 'color-depth' parameter is now used to define the color depth for
the RDP session.
This commit is contained in:
Laurent Meunier 2012-08-31 13:07:05 +02:00 committed by Michael Jumper
parent 734cfb4217
commit c45ff69dca

View File

@ -358,6 +358,13 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
if (argv[IDX_INITIAL_PROGRAM][0] != '\0')
settings->shell = strdup(argv[IDX_INITIAL_PROGRAM]);
/* session color depth */
settings->color_depth = 16;
if (argv[IDX_COLOR_DEPTH][0] != '\0')
settings->color_depth = atoi(argv[IDX_COLOR_DEPTH]);
if (settings->color_depth == 0)
settings->color_depth = 16;
/* Order support */
bitmap_cache = settings->bitmap_cache;
settings->os_major_type = OSMAJORTYPE_UNSPECIFIED;