/[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 500 by astrand, Wed Oct 15 14:32:43 2003 UTC
# Line 719  ui_init(void) Line 719  ui_init(void)
719          g_host_be = !(BOOL) (*(uint8 *) (&test));          g_host_be = !(BOOL) (*(uint8 *) (&test));
720          g_xserver_be = (ImageByteOrder(g_display) == MSBFirst);          g_xserver_be = (ImageByteOrder(g_display) == MSBFirst);
721    
722          if ((g_width == 0) || (g_height == 0))          /*
723             * Determine desktop size
724             */
725            if (g_width < 0)
726            {
727                    /* Percent of screen */
728                    g_height = HeightOfScreen(g_screen) * (-g_width) / 100;
729                    g_width = WidthOfScreen(g_screen) * (-g_width) / 100;
730            }
731            else if (g_width == 0)
732          {          {
733                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
734                  uint32 x, y, cx, cy;                  uint32 x, y, cx, cy;
# Line 736  ui_init(void) Line 745  ui_init(void)
745                          g_height = 600;                          g_height = 600;
746                  }                  }
747          }          }
748            else if (g_fullscreen)
         if (g_fullscreen)  
749          {          {
750                  g_width = WidthOfScreen(g_screen);                  g_width = WidthOfScreen(g_screen);
751                  g_height = HeightOfScreen(g_screen);                  g_height = HeightOfScreen(g_screen);

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

  ViewVC Help
Powered by ViewVC 1.1.26