/[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 1223 by astrand, Sun Apr 9 20:11:42 2006 UTC revision 1249 by astrand, Mon Aug 7 11:45:06 2006 UTC
# Line 242  seamless_XDrawLines(Drawable d, XPoint * Line 242  seamless_XDrawLines(Drawable d, XPoint *
242                          break; \                          break; \
243                  case 1: /* Filled */ \                  case 1: /* Filled */ \
244                          XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \                          XFillArc(g_display, g_wnd, g_gc, x, y, cx, cy, 0, 360*64); \
245                          ON_ALL_SEAMLESS_WINDOWS(XCopyArea, (g_display, g_ownbackstore ? g_backstore : g_wnd, sw->wnd, g_gc, \                          ON_ALL_SEAMLESS_WINDOWS(XFillArc, (g_display, sw->wnd, g_gc, x-sw->xoffset, y-sw->yoffset, cx, cy, 0, 360*64)); \
                                                             x, y, cx, cy, x-sw->xoffset, y-sw->yoffset)); \  
246                          if (g_ownbackstore) \                          if (g_ownbackstore) \
247                                  XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \                                  XFillArc(g_display, g_backstore, g_gc, x, y, cx, cy, 0, 360*64); \
248                          break; \                          break; \
# Line 1314  calculate_mask_weight(uint32 mask) Line 1313  calculate_mask_weight(uint32 mask)
1313  }  }
1314    
1315  static BOOL  static BOOL
1316  select_visual()  select_visual(int screen_num)
1317  {  {
1318          XPixmapFormatValues *pfm;          XPixmapFormatValues *pfm;
1319          int pixmap_formats_count, visuals_count;          int pixmap_formats_count, visuals_count;
# Line 1325  select_visual() Line 1324  select_visual()
1324    
1325          red_weight = blue_weight = green_weight = 0;          red_weight = blue_weight = green_weight = 0;
1326    
1327            if (g_server_depth == -1)
1328            {
1329                    g_server_depth = DisplayPlanes(g_display, DefaultScreen(g_display));
1330            }
1331    
1332          pfm = XListPixmapFormats(g_display, &pixmap_formats_count);          pfm = XListPixmapFormats(g_display, &pixmap_formats_count);
1333          if (pfm == NULL)          if (pfm == NULL)
1334          {          {
# Line 1335  select_visual() Line 1339  select_visual()
1339    
1340          /* Search for best TrueColor visual */          /* Search for best TrueColor visual */
1341          template.class = TrueColor;          template.class = TrueColor;
1342          vmatches = XGetVisualInfo(g_display, VisualClassMask, &template, &visuals_count);          template.screen = screen_num;
1343            vmatches = XGetVisualInfo(g_display, VisualClassMask | VisualScreenMask, &template, &visuals_count);
1344          g_visual = NULL;          g_visual = NULL;
1345          g_no_translate_image = False;          g_no_translate_image = False;
1346          g_compatible_arch = False;          g_compatible_arch = False;
# Line 1540  ui_init(void) Line 1545  ui_init(void)
1545          g_screen = ScreenOfDisplay(g_display, screen_num);          g_screen = ScreenOfDisplay(g_display, screen_num);
1546          g_depth = DefaultDepthOfScreen(g_screen);          g_depth = DefaultDepthOfScreen(g_screen);
1547    
1548          if (!select_visual())          if (!select_visual(screen_num))
1549                  return False;                  return False;
1550    
1551          if (g_no_translate_image)          if (g_no_translate_image)
# Line 3468  ui_seamless_destroy_window(unsigned long Line 3473  ui_seamless_destroy_window(unsigned long
3473  }  }
3474    
3475    
3476    void
3477    ui_seamless_destroy_group(unsigned long id, unsigned long flags)
3478    {
3479            seamless_window *sw, *sw_next;
3480    
3481            if (!g_seamless_active)
3482                    return;
3483    
3484            for (sw = g_seamless_windows; sw; sw = sw_next)
3485            {
3486                    sw_next = sw->next;
3487    
3488                    if (sw->group->id == id)
3489                    {
3490                            XDestroyWindow(g_display, sw->wnd);
3491                            sw_remove_window(sw);
3492                    }
3493            }
3494    }
3495    
3496    
3497  void  void
3498  ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, unsigned long flags)  ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, unsigned long flags)
3499  {  {

Legend:
Removed from v.1223  
changed lines
  Added in v.1249

  ViewVC Help
Powered by ViewVC 1.1.26