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;