From 23e4e43722b19730067254995acb8332ed11c783 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 3 Sep 2013 14:09:33 -0700 Subject: [PATCH] Round screen width down, rather than up. --- src/protocols/rdp/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/rdp/client.c b/src/protocols/rdp/client.c index 29773fc5..93bc6e21 100644 --- a/src/protocols/rdp/client.c +++ b/src/protocols/rdp/client.c @@ -500,8 +500,8 @@ int guac_client_init(guac_client* client, int argc, char** argv) { argv[IDX_WIDTH], settings->width); } - /* Round width up to nearest multiple of 4 */ - settings->width = (settings->width + 3) & ~0x3; + /* Round width down to nearest multiple of 4 */ + settings->width = settings->width & ~0x3; /* Use optimal height unless overridden */ settings->height = client->info.optimal_height;