/[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 29 by matty, Fri Sep 14 03:38:39 2001 UTC revision 30 by matty, Fri Sep 14 13:51:38 2001 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     User interface services - X-Windows     User interface services - X-Windows
4     Copyright (C) Matthew Chapman 1999-2000     Copyright (C) Matthew Chapman 1999-2001
5        
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 151  ui_create_window(char *title) Line 151  ui_create_window(char *title)
151          display = XOpenDisplay(NULL);          display = XOpenDisplay(NULL);
152          if (display == NULL)          if (display == NULL)
153          {          {
154                  ERROR("Failed to open display\n");                  error("Failed to open display\n");
155                  return False;                  return False;
156          }          }
157    
# Line 177  ui_create_window(char *title) Line 177  ui_create_window(char *title)
177    
178          if (bpp < 8)          if (bpp < 8)
179          {          {
180                  ERROR("Less than 8 bpp not currently supported.\n");                  error("Less than 8 bpp not currently supported.\n");
181                  XCloseDisplay(display);                  XCloseDisplay(display);
182                  return False;                  return False;
183          }          }
# Line 205  ui_create_window(char *title) Line 205  ui_create_window(char *title)
205                  attribs.override_redirect = False;                  attribs.override_redirect = False;
206          }          }
207    
208          width &= ~3; /* make width a multiple of 32 bits */          width = (width + 3) & ~3; /* make width a multiple of 32 bits */
209    
210          wnd = XCreateWindow(display, RootWindowOfScreen(screen),          wnd = XCreateWindow(display, RootWindowOfScreen(screen),
211                              0, 0, width, height, 0, CopyFromParent,                              0, 0, width, height, 0, CopyFromParent,
# Line 259  ui_destroy_window() Line 259  ui_destroy_window()
259  static uint8  static uint8
260  xwin_translate_key(unsigned long key)  xwin_translate_key(unsigned long key)
261  {  {
262          DEBUG("KEY(code=0x%lx)\n", key);          DEBUG(("KEY(code=0x%lx)\n", key));
263    
264          if ((key > 8) && (key <= 0x60))          if ((key > 8) && (key <= 0x60))
265                  return (key - 8);                  return (key - 8);
# Line 707  ui_patblt(uint8 opcode, Line 707  ui_patblt(uint8 opcode,
707                          break;                          break;
708    
709                  default:                  default:
710                          NOTIMP("brush %d\n", brush->style);                          unimpl("brush %d\n", brush->style);
711          }          }
712    
713          RESET_FUNCTION(opcode);          RESET_FUNCTION(opcode);
# Line 765  ui_triblt(uint8 opcode, Line 765  ui_triblt(uint8 opcode,
765                          break;                          break;
766    
767                  default:                  default:
768                          NOTIMP("triblt 0x%x\n", opcode);                          unimpl("triblt 0x%x\n", opcode);
769                          ui_memblt(ROP2_COPY, x, y, cx, cy, src, srcx, srcy);                          ui_memblt(ROP2_COPY, x, y, cx, cy, src, srcx, srcy);
770          }          }
771  }  }

Legend:
Removed from v.29  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26