1 |
/* |
/* |
2 |
* Copyright (C) 2003-2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: x11.c,v 1.59 2005/06/20 05:52:47 debug Exp $ |
* $Id: x11.c,v 1.61 2006/01/14 12:51:59 debug Exp $ |
29 |
* |
* |
30 |
* X11-related functions. |
* X11-related functions. |
31 |
*/ |
*/ |
67 |
* x11_redraw_cursor(): |
* x11_redraw_cursor(): |
68 |
* |
* |
69 |
* Redraw a framebuffer's X11 cursor. |
* Redraw a framebuffer's X11 cursor. |
70 |
|
* |
71 |
|
* NOTE: It is up to the caller to call XFlush. |
72 |
*/ |
*/ |
73 |
void x11_redraw_cursor(struct machine *m, int i) |
void x11_redraw_cursor(struct machine *m, int i) |
74 |
{ |
{ |
180 |
m->fb_windows[i]->cursor_xsize; |
m->fb_windows[i]->cursor_xsize; |
181 |
m->fb_windows[i]->OLD_cursor_ysize = |
m->fb_windows[i]->OLD_cursor_ysize = |
182 |
m->fb_windows[i]->cursor_ysize; |
m->fb_windows[i]->cursor_ysize; |
|
XFlush(m->fb_windows[i]->x11_display); |
|
183 |
} |
} |
184 |
|
|
185 |
/* printf("n_colors_used = %i\n", n_colors_used); */ |
/* printf("n_colors_used = %i\n", n_colors_used); */ |
188 |
/* Remove the old X11 host cursor: */ |
/* Remove the old X11 host cursor: */ |
189 |
XUndefineCursor(m->fb_windows[i]->x11_display, |
XUndefineCursor(m->fb_windows[i]->x11_display, |
190 |
m->fb_windows[i]->x11_fb_window); |
m->fb_windows[i]->x11_fb_window); |
|
XFlush(m->fb_windows[i]->x11_display); |
|
191 |
XFreeCursor(m->fb_windows[i]->x11_display, |
XFreeCursor(m->fb_windows[i]->x11_display, |
192 |
m->fb_windows[i]->host_cursor); |
m->fb_windows[i]->host_cursor); |
193 |
m->fb_windows[i]->host_cursor = 0; |
m->fb_windows[i]->host_cursor = 0; |
231 |
XDefineCursor(m->fb_windows[i]->x11_display, |
XDefineCursor(m->fb_windows[i]->x11_display, |
232 |
m->fb_windows[i]->x11_fb_window, |
m->fb_windows[i]->x11_fb_window, |
233 |
m->fb_windows[i]->host_cursor); |
m->fb_windows[i]->host_cursor); |
|
XFlush(m->fb_windows[i]->x11_display); |
|
234 |
} |
} |
235 |
} |
} |
236 |
} |
} |