60 |
int g_desktop_save = 1; |
int g_desktop_save = 1; |
61 |
int g_bitmap_compression = 1; |
int g_bitmap_compression = 1; |
62 |
int g_polygon_ellipse_orders = 0; |
int g_polygon_ellipse_orders = 0; |
63 |
int g_rdp5_performanceflags = 0; |
int g_rdp5_performanceflags = |
64 |
|
RDP5_NO_WALLPAPER | RDP5_NO_FULLWINDOWDRAG | RDP5_NO_MENUANIMATIONS; |
65 |
int g_console_session = 0; |
int g_console_session = 0; |
66 |
int g_keylayout = 0x409; /* Defaults to US keyboard layout */ |
int g_keylayout = 0x409; /* Defaults to US keyboard layout */ |
67 |
|
int g_keyboard_type = 0x4; /* Defaults to US keyboard layout */ |
68 |
|
int g_keyboard_subtype = 0x0; /* Defaults to US keyboard layout */ |
69 |
|
int g_keyboard_functionkeys = 0xc; /* Defaults to US keyboard layout */ |
70 |
int g_width = 640; |
int g_width = 640; |
71 |
int g_height = 480; |
int g_height = 480; |
72 |
int g_server_bpp = 8; |
int g_server_bpp = 8; |
122 |
static int g_clipcx = 0; |
static int g_clipcx = 0; |
123 |
static int g_clipcy = 0; |
static int g_clipcy = 0; |
124 |
|
|
125 |
|
/* Session Directory redirection */ |
126 |
|
BOOL g_redirect = False; |
127 |
|
char g_redirect_server[64]; |
128 |
|
char g_redirect_domain[16]; |
129 |
|
char g_redirect_password[64]; |
130 |
|
char g_redirect_username[64]; |
131 |
|
char g_redirect_cookie[128]; |
132 |
|
uint32 g_redirect_flags = 0; |
133 |
|
|
134 |
#define BPP ((g_server_bpp + 7) / 8) |
#define BPP ((g_server_bpp + 7) / 8) |
135 |
#define GETPIXEL8(d, x, y, w) (*(((uint8*)d) + ((y) * (w) + (x)))) |
#define GETPIXEL8(d, x, y, w) (*(((uint8*)d) + ((y) * (w) + (x)))) |
136 |
#define GETPIXEL16(d, x, y, w) (*(((uint16*)d) + ((y) * (w) + (x)))) |
#define GETPIXEL16(d, x, y, w) (*(((uint16*)d) + ((y) * (w) + (x)))) |
2167 |
} |
} |
2168 |
|
|
2169 |
/*****************************************************************************/ |
/*****************************************************************************/ |
2170 |
|
char * xstrdup(const char * s) |
2171 |
|
{ |
2172 |
|
char * mem = strdup(s); |
2173 |
|
if (mem == NULL) |
2174 |
|
{ |
2175 |
|
perror("strdup"); |
2176 |
|
exit(1); |
2177 |
|
} |
2178 |
|
return mem; |
2179 |
|
} |
2180 |
|
|
2181 |
|
/*****************************************************************************/ |
2182 |
void warning(char * format, ...) |
void warning(char * format, ...) |
2183 |
{ |
{ |
2184 |
va_list ap; |
va_list ap; |