1 /*
2  *	highlt.cc
3  *	AYM 1998-09-20
4  */
5 
6 
7 /*
8 This file is part of Yadex.
9 
10 Yadex incorporates code from DEU 5.21 that was put in the public domain in
11 1994 by Rapha�l Quinet and Brendon Wyber.
12 
13 The rest of Yadex is Copyright � 1997-2003 Andr� Majorel and others.
14 
15 This program is free software; you can redistribute it and/or modify it under
16 the terms of the GNU General Public License as published by the Free Software
17 Foundation; either version 2 of the License, or (at your option) any later
18 version.
19 
20 This program is distributed in the hope that it will be useful, but WITHOUT
21 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
22 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
23 
24 You should have received a copy of the GNU General Public License along with
25 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
26 Place, Suite 330, Boston, MA 02111-1307, USA.
27 */
28 
29 
30 #include "yadex.h"
31 #include "highlt.h"
32 #include "objects.h"
33 #include "objid.h"
34 
35 
highlight_c(void)36 highlight_c::highlight_c (void)
37 {
38 obj.nil ();
39 obj_disp.nil ();
40 }
41 
42 
draw(void)43 void highlight_c::draw (void)
44 {
45 if (! obj_disp () && obj ())
46    {
47    HighlightObject (obj.type, obj.num, YELLOW);
48    obj_disp = obj;
49    }
50 }
51 
52 
undraw(void)53 void highlight_c::undraw (void)
54 {
55 if (obj_disp () && ! (obj_disp == obj))
56    {
57    HighlightObject (obj_disp.type, obj_disp.num, YELLOW);
58    obj_disp.nil ();
59    }
60 }
61 
62 
63