WINHIDE.CPP 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /* $Header: g:/library/source/rcs/./winhide.c 1.10 1994/05/20 15:35:50 joe_bostic Exp $ */
  15. /***************************************************************************
  16. ** 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 **
  17. ***************************************************************************
  18. * *
  19. * Project Name : Dune *
  20. * *
  21. * File Name : WINHIDE.C *
  22. * *
  23. * Programmer : Joe L. Bostic *
  24. * *
  25. * Start Date : May 30, 1991 *
  26. * *
  27. * Last Update : August 16, 1991 [JLB] *
  28. * *
  29. *-------------------------------------------------------------------------*
  30. * Functions: *
  31. * Window_Hide_Mouse -- Hides the mouse when it enters a window. *
  32. * Window_Show_Mouse -- Shows the mouse after Window_Hide_Mouse hides it.*
  33. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  34. #include <wwstd.h>
  35. #include <keyboard.h>
  36. #include "ww_win.h"
  37. #if(IBM)
  38. /***************************************************************************
  39. * WINDOW_HIDE_MOUSE -- Hides the mouse when it enters a window. *
  40. * *
  41. * This is an intelligent form of Conditional_Hide_Mouse(). It will *
  42. * hide the mouse if it enters the specified window (see the *
  43. * WindowList global). *
  44. * *
  45. * INPUT: window - Window number. *
  46. * *
  47. * OUTPUT: none *
  48. * *
  49. * WARNINGS: Just like Conditional_Hide_Mouse(), this function is NOT *
  50. * nestable. *
  51. * *
  52. * HISTORY: *
  53. * 04/26/1991 JLB : Created. *
  54. *=========================================================================*/
  55. void Window_Hide_Mouse(int window)
  56. {
  57. int x,y,w,h;
  58. x = WindowList[window][WINDOWX]<<3;
  59. y = WindowList[window][WINDOWY];
  60. w = WindowList[window][WINDOWWIDTH]<<3;
  61. h = WindowList[window][WINDOWHEIGHT];
  62. // Conditional_Hide_Mouse(x,y,x+w-1,y+h-1);
  63. }
  64. /***************************************************************************
  65. * WINDOW_SHOW_MOUSE -- Shows the mouse after Window_Hide_Mouse hides it. *
  66. * *
  67. * This routines will show the mouse after Window_Hide_Mouse has hidden *
  68. * it. *
  69. * *
  70. * INPUT: none *
  71. * *
  72. * OUTPUT: none *
  73. * *
  74. * WARNINGS: none *
  75. * *
  76. * HISTORY: *
  77. * 05/22/1991 JLB : Created. *
  78. *=========================================================================*/
  79. void Window_Show_Mouse(void)
  80. {
  81. // Conditional_Show_Mouse();
  82. }
  83. #endif
  84.