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

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

revision 447 by jsorg71, Thu Aug 21 23:23:15 2003 UTC revision 449 by astrand, Wed Aug 27 09:42:55 2003 UTC
# Line 103  PixelColour; Line 103  PixelColour;
103  /* colour maps */  /* colour maps */
104  BOOL owncolmap = False;  BOOL owncolmap = False;
105  static Colormap xcolmap;  static Colormap xcolmap;
106  static uint32 *colmap;  static uint32 *colmap = NULL;
107    
108  #define TRANSLATE(col)          ( g_server_bpp != 8 ? translate_colour(col) : owncolmap ? col : translate_colour(colmap[col]) )  #define TRANSLATE(col)          ( g_server_bpp != 8 ? translate_colour(col) : owncolmap ? col : translate_colour(colmap[col]) )
109  #define SET_FOREGROUND(col)     XSetForeground(display, gc, TRANSLATE(col));  #define SET_FOREGROUND(col)     XSetForeground(display, gc, TRANSLATE(col));
# Line 600  ui_init(void) Line 600  ui_init(void)
600          if (ownbackstore)          if (ownbackstore)
601          {          {
602                  backstore =                  backstore =
603                          XCreatePixmap(display, RootWindowOfScreen(screen), g_width, g_height, depth);                          XCreatePixmap(display, RootWindowOfScreen(screen), g_width, g_height,
604                                          depth);
605    
606                  /* clear to prevent rubbish being exposed at startup */                  /* clear to prevent rubbish being exposed at startup */
607                  XSetForeground(display, gc, BlackPixelOfScreen(screen));                  XSetForeground(display, gc, BlackPixelOfScreen(screen));
# Line 832  xwin_process_events(void) Line 833  xwin_process_events(void)
833                                  if (tr.scancode == 0)                                  if (tr.scancode == 0)
834                                          break;                                          break;
835    
836                                    save_remote_modifiers();
837                                  ensure_remote_modifiers(ev_time, tr);                                  ensure_remote_modifiers(ev_time, tr);
   
838                                  rdp_send_scancode(ev_time, RDP_KEYPRESS, tr.scancode);                                  rdp_send_scancode(ev_time, RDP_KEYPRESS, tr.scancode);
839                                    restore_remote_modifiers();
840    
841                                  break;                                  break;
842    
843                          case KeyRelease:                          case KeyRelease:
# Line 1347  void Line 1350  void
1350  ui_set_colourmap(HCOLOURMAP map)  ui_set_colourmap(HCOLOURMAP map)
1351  {  {
1352          if (!owncolmap)          if (!owncolmap)
1353            {
1354                    if (colmap)
1355                            xfree(colmap);
1356    
1357                  colmap = (uint32 *) map;                  colmap = (uint32 *) map;
1358            }
1359          else          else
1360                  XSetWindowColormap(display, wnd, (Colormap) map);                  XSetWindowColormap(display, wnd, (Colormap) map);
1361  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26