1 /*
2 
3 Copyright (C) 2015-2018 Night Dive Studios, LLC.
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 */
19 #ifndef __CIT2D_H
20 #define __CIT2D_H
21 
22 /*
23  * $Source: r:/prj/cit/src/inc/RCS/cit2d.h $
24  * $Revision: 1.4 $
25  * $Author: mahk $
26  * $Date: 1994/08/18 17:20:17 $
27  *
28  */
29 
30 // Stuff that we wish the 2d had, but is too cool.
31 
32 #define FONT_IS_MONO(fontptr) ((fontptr)->id != 0xCCCC)
33 
34 void draw_shadowed_string(char *s, short x, short y, uchar shadow);
35 
36 #ifdef BROKEN_SAFE_CLIPRECT
37 #define safe_set_cliprect(a, b, c, d)                             \
38     do {                                                          \
39         short _safe_x = a;                                        \
40         short _safe_y = b;                                        \
41         short _safe_p = c;                                        \
42         short _safe_q = d;                                        \
43         gr_safe_set_cliprect(_safe_x, _safe_y, _safe_p, _safe_q); \
44     } while (0)
45 #else
46 #define safe_set_cliprect(a, b, c, d) gr_safe_set_cliprect(a, b, c, d)
47 #endif
48 
49 #endif // __CIT2D_H
50