Make sure width is a multiple of 4 (previous version in ui_create_window

was getting done too late, after connection).


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@102 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Matt Chapman 2002-08-29 14:18:24 +00:00
parent 32d5382f9d
commit fd914b8cb8
2 changed files with 5 additions and 3 deletions

View File

@ -234,6 +234,11 @@ main(int argc, char *argv[])
width = 800;
height = 600;
}
else
{
/* make sure width is a multiple of 4 */
width = (width + 3) & ~3;
}
strcpy(title, "rdesktop - ");
strncat(title, server, sizeof(title) - sizeof("rdesktop - "));

3
xwin.c
View File

@ -429,9 +429,6 @@ ui_create_window()
attribs.override_redirect = False;
}
width = (width + 3) & ~3; /* make width a multiple of 32 bits */
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
VisibilityChangeMask | FocusChangeMask;