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 |
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 |
|
|
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 |
} |
} |
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, |
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); |
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); |
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 |
} |
} |