Round screen width down, rather than up.

This commit is contained in:
Michael Jumper 2013-09-03 14:09:33 -07:00
parent 3ea5af4754
commit 23e4e43722

View File

@ -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;