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