/[rdesktop]/sourceforge.net/trunk/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 444 by astrand, Sun Aug 17 07:31:36 2003 UTC revision 447 by jsorg71, Thu Aug 21 23:23:15 2003 UTC
# Line 45  char g_username[16]; Line 45  char g_username[16];
45  char hostname[16];  char hostname[16];
46  char keymapname[16];  char keymapname[16];
47  int keylayout = 0x409;          /* Defaults to US keyboard layout */  int keylayout = 0x409;          /* Defaults to US keyboard layout */
48  int width = 800;                /* If width or height are reset to zero, the geometry will  int g_width = 800;              /* If width or height are reset to zero, the geometry will
49                                     be fetched from _NET_WORKAREA */                                     be fetched from _NET_WORKAREA */
50  int height = 600;  int g_height = 600;
51  int tcp_port_rdp = TCP_PORT_RDP;  int tcp_port_rdp = TCP_PORT_RDP;
52  int g_server_bpp = 8;  int g_server_bpp = 8;
53  int win_button_size = 0;        /* If zero, disable single app mode */  int win_button_size = 0;        /* If zero, disable single app mode */
54  BOOL g_bitmap_compression = True;  BOOL g_bitmap_compression = True;
55  BOOL sendmotion = True;  BOOL g_sendmotion = True;
56  BOOL g_orders = True;  BOOL g_orders = True;
57  BOOL g_encryption = True;  BOOL g_encryption = True;
58  BOOL packet_encryption = True;  BOOL packet_encryption = True;
59  BOOL g_desktop_save = True;  BOOL g_desktop_save = True;
60  BOOL fullscreen = False;  BOOL g_fullscreen = False;
61  BOOL grab_keyboard = True;  BOOL grab_keyboard = True;
62  BOOL hide_decorations = False;  BOOL hide_decorations = False;
63  BOOL g_use_rdp5 = False;  BOOL g_use_rdp5 = False;
# Line 296  main(int argc, char *argv[]) Line 296  main(int argc, char *argv[])
296                          case 'g':                          case 'g':
297                                  if (!strcmp(optarg, "workarea"))                                  if (!strcmp(optarg, "workarea"))
298                                  {                                  {
299                                          width = height = 0;                                          g_width = g_height = 0;
300                                          break;                                          break;
301                                  }                                  }
302    
303                                  width = strtol(optarg, &p, 10);                                  g_width = strtol(optarg, &p, 10);
304                                  if (*p == 'x')                                  if (*p == 'x')
305                                          height = strtol(p + 1, NULL, 10);                                          g_height = strtol(p + 1, NULL, 10);
306    
307                                  if ((width == 0) || (height == 0))                                  if ((g_width == 0) || (g_height == 0))
308                                  {                                  {
309                                          error("invalid geometry\n");                                          error("invalid geometry\n");
310                                          return 1;                                          return 1;
# Line 312  main(int argc, char *argv[]) Line 312  main(int argc, char *argv[])
312                                  break;                                  break;
313    
314                          case 'f':                          case 'f':
315                                  fullscreen = True;                                  g_fullscreen = True;
316                                  break;                                  break;
317    
318                          case 'b':                          case 'b':
# Line 326  main(int argc, char *argv[]) Line 326  main(int argc, char *argv[])
326                                  packet_encryption = False;                                  packet_encryption = False;
327                                  break;                                  break;
328                          case 'm':                          case 'm':
329                                  sendmotion = False;                                  g_sendmotion = False;
330                                  break;                                  break;
331    
332                          case 'C':                          case 'C':

Legend:
Removed from v.444  
changed lines
  Added in v.447

  ViewVC Help
Powered by ViewVC 1.1.26