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 - "); |
357 |
|
|
358 |
while (offset < len) |
while (offset < len) |
359 |
{ |
{ |
360 |
fprintf(stderr, "%04x ", offset); |
printf("%04x ", offset); |
361 |
thisline = len - offset; |
thisline = len - offset; |
362 |
if (thisline > 16) |
if (thisline > 16) |
363 |
thisline = 16; |
thisline = 16; |
364 |
|
|
365 |
for (i = 0; i < thisline; i++) |
for (i = 0; i < thisline; i++) |
366 |
fprintf(stderr, "%02x ", line[i]); |
printf("%02x ", line[i]); |
367 |
|
|
368 |
for (; i < 16; i++) |
for (; i < 16; i++) |
369 |
fprintf(stderr, " "); |
printf(" "); |
370 |
|
|
371 |
for (i = 0; i < thisline; i++) |
for (i = 0; i < thisline; i++) |
372 |
fprintf(stderr, "%c", (line[i] >= 0x20 && line[i] < 0x7f) ? line[i] : '.'); |
printf("%c", (line[i] >= 0x20 && line[i] < 0x7f) ? line[i] : '.'); |
373 |
|
|
374 |
fprintf(stderr, "\n"); |
printf("\n"); |
375 |
offset += thisline; |
offset += thisline; |
376 |
line += thisline; |
line += thisline; |
377 |
} |
} |
378 |
} |
} |
379 |
|
|
380 |
|
#ifdef SAVE_LICENCE |
381 |
int |
int |
382 |
load_licence(unsigned char **data) |
load_licence(unsigned char **data) |
383 |
{ |
{ |
431 |
write(fd, data, length); |
write(fd, data, length); |
432 |
close(fd); |
close(fd); |
433 |
} |
} |
434 |
|
#endif |