home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / xgalaga-2_0_tar.gz / xgalaga-2_0_tar / xgalaga-2.0 / libsprite / misc.c < prev    next >
C/C++ Source or Header  |  1998-04-12  |  696b  |  62 lines

  1. #include "allincludes.h"
  2.  
  3. int
  4. W_Mono()
  5. {
  6.     return forceMono;
  7. }
  8.   
  9. void
  10. W_Beep()
  11. {
  12.     XBell(W_Display, 0);
  13. }
  14.  
  15. int
  16. W_WindowWidth(window)
  17.     W_Window window;
  18. {
  19.     return (W_Void2Window(window)->width);
  20. }
  21.  
  22. int
  23. W_WindowHeight(window)
  24.     W_Window window;
  25. {
  26.     return (W_Void2Window(window)->height);
  27. }
  28.  
  29. int
  30. W_Socket()
  31. {
  32.     return (ConnectionNumber(W_Display));
  33. }
  34.  
  35. void
  36. W_Flush()
  37. {
  38.     XFlush(W_Display);
  39. }
  40.  
  41. #ifdef AUTOKEY
  42. void W_AutoRepeatOff()
  43. {
  44.     XAutoRepeatOff(W_Display);
  45.     W_Flush();
  46. }
  47.  
  48. void W_AutoRepeatOn()
  49. {
  50.     XAutoRepeatOn(W_Display);
  51.     W_Flush();
  52. }
  53. #endif                /* AUTOKEY */
  54.  
  55. /* synchronize the X server with the client [BDyess] */
  56. void 
  57. W_Sync()
  58. {
  59.   XSync(W_Display,False);
  60. }
  61.  
  62.