WINHIDE.CPP 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: g:/library/source/rcs/./winhide.c 1.10 1994/05/20 15:35:50 joe_bostic Exp $ */
  19. /***************************************************************************
  20. ** C O N F I D E N T I A L --- W E S T W O O D A S S O C I A T E S **
  21. ***************************************************************************
  22. * *
  23. * Project Name : Dune *
  24. * *
  25. * File Name : WINHIDE.C *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : May 30, 1991 *
  30. * *
  31. * Last Update : August 16, 1991 [JLB] *
  32. * *
  33. *-------------------------------------------------------------------------*
  34. * Functions: *
  35. * Window_Hide_Mouse -- Hides the mouse when it enters a window. *
  36. * Window_Show_Mouse -- Shows the mouse after Window_Hide_Mouse hides it.*
  37. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  38. #include <wwstd.h>
  39. #include <keyboard.h>
  40. #include "ww_win.h"
  41. #if(IBM)
  42. /***************************************************************************
  43. * WINDOW_HIDE_MOUSE -- Hides the mouse when it enters a window. *
  44. * *
  45. * This is an intelligent form of Conditional_Hide_Mouse(). It will *
  46. * hide the mouse if it enters the specified window (see the *
  47. * WindowList global). *
  48. * *
  49. * INPUT: window - Window number. *
  50. * *
  51. * OUTPUT: none *
  52. * *
  53. * WARNINGS: Just like Conditional_Hide_Mouse(), this function is NOT *
  54. * nestable. *
  55. * *
  56. * HISTORY: *
  57. * 04/26/1991 JLB : Created. *
  58. *=========================================================================*/
  59. void Window_Hide_Mouse(int window)
  60. {
  61. int x,y,w,h;
  62. x = WindowList[window][WINDOWX]<<3;
  63. y = WindowList[window][WINDOWY];
  64. w = WindowList[window][WINDOWWIDTH]<<3;
  65. h = WindowList[window][WINDOWHEIGHT];
  66. // Conditional_Hide_Mouse(x,y,x+w-1,y+h-1);
  67. }
  68. /***************************************************************************
  69. * WINDOW_SHOW_MOUSE -- Shows the mouse after Window_Hide_Mouse hides it. *
  70. * *
  71. * This routines will show the mouse after Window_Hide_Mouse has hidden *
  72. * it. *
  73. * *
  74. * INPUT: none *
  75. * *
  76. * OUTPUT: none *
  77. * *
  78. * WARNINGS: none *
  79. * *
  80. * HISTORY: *
  81. * 05/22/1991 JLB : Created. *
  82. *=========================================================================*/
  83. void Window_Show_Mouse(void)
  84. {
  85. // Conditional_Show_Mouse();
  86. }
  87. #endif
  88.