34 |
char hostname[16]; |
char hostname[16]; |
35 |
char keymapname[16]; |
char keymapname[16]; |
36 |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
int keylayout = 0x409; /* Defaults to US keyboard layout */ |
37 |
int width; |
int width = 800; |
38 |
int height; |
int height = 600; |
39 |
int tcp_port_rdp = TCP_PORT_RDP; |
int tcp_port_rdp = TCP_PORT_RDP; |
40 |
BOOL bitmap_compression = True; |
BOOL bitmap_compression = True; |
41 |
BOOL sendmotion = True; |
BOOL sendmotion = True; |
234 |
STRNCPY(password, p, sizeof(password)); |
STRNCPY(password, p, sizeof(password)); |
235 |
} |
} |
236 |
|
|
|
if ((width == 0) || (height == 0)) |
|
|
{ |
|
|
width = 800; |
|
|
height = 600; |
|
|
} |
|
|
else |
|
|
{ |
|
|
/* make sure width is a multiple of 4 */ |
|
|
width = (width + 3) & ~3; |
|
|
} |
|
|
|
|
237 |
if (!strlen(title)) |
if (!strlen(title)) |
238 |
{ |
{ |
239 |
strcpy(title, "rdesktop - "); |
strcpy(title, "rdesktop - "); |