Round screen width down, rather than up.
This commit is contained in:
parent
3ea5af4754
commit
23e4e43722
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user