/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.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/xwin.c

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

revision 499 by astrand, Wed Oct 15 14:01:32 2003 UTC revision 504 by stargo, Sun Oct 19 11:59:41 2003 UTC
# Line 69  static int g_move_y_offset = 0; Line 69  static int g_move_y_offset = 0;
69  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
70  extern int g_dsp_fd;  extern int g_dsp_fd;
71  extern BOOL g_dsp_busy;  extern BOOL g_dsp_busy;
72    extern BOOL g_rdpsnd;
73  #endif  #endif
74    
75  /* MWM decorations */  /* MWM decorations */
# Line 719  ui_init(void) Line 720  ui_init(void)
720          g_host_be = !(BOOL) (*(uint8 *) (&test));          g_host_be = !(BOOL) (*(uint8 *) (&test));
721          g_xserver_be = (ImageByteOrder(g_display) == MSBFirst);          g_xserver_be = (ImageByteOrder(g_display) == MSBFirst);
722    
723          if ((g_width == 0) || (g_height == 0))          /*
724             * Determine desktop size
725             */
726            if (g_width < 0)
727            {
728                    /* Percent of screen */
729                    g_height = HeightOfScreen(g_screen) * (-g_width) / 100;
730                    g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
731            }
732            else if (g_width == 0)
733          {          {
734                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
735                  uint32 x, y, cx, cy;                  uint32 x, y, cx, cy;
# Line 736  ui_init(void) Line 746  ui_init(void)
746                          g_height = 600;                          g_height = 600;
747                  }                  }
748          }          }
749            else if (g_fullscreen)
         if (g_fullscreen)  
750          {          {
751                  g_width = WidthOfScreen(g_screen);                  g_width = WidthOfScreen(g_screen);
752                  g_height = HeightOfScreen(g_screen);                  g_height = HeightOfScreen(g_screen);

Legend:
Removed from v.499  
changed lines
  Added in v.504

  ViewVC Help
Powered by ViewVC 1.1.26