/[gxemul]/trunk/src/x11.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 /trunk/src/x11.c

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

revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 1  Line 1 
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:
# Line 25  Line 25 
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   */   */
# Line 67  void x11_check_event(struct emul **emuls Line 67  void x11_check_event(struct emul **emuls
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  {  {
# Line 178  void x11_redraw_cursor(struct machine *m Line 180  void x11_redraw_cursor(struct machine *m
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);  */
# Line 187  void x11_redraw_cursor(struct machine *m Line 188  void x11_redraw_cursor(struct machine *m
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;
# Line 231  void x11_redraw_cursor(struct machine *m Line 231  void x11_redraw_cursor(struct machine *m
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  }  }

Legend:
Removed from v.10  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26