annotate packages/net/vnc_server/current/include/vnc-server.h @ 1188:deed043a388c

Add support for BGR233 pixel mode
author gthomas
date Tue, 02 Sep 2003 01:43:35 +0000
parents f30dbfbd254c
children e0c748e0a46b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
1 //==========================================================================
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
2 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
3 // vnc-server.h
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
4 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
5 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
6 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
7 //==========================================================================
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
8 //####ECOSGPLCOPYRIGHTBEGIN####
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
9 // -------------------------------------------
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
10 // This file is part of eCos, the Embedded Configurable Operating System.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
12 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
13 // eCos is free software; you can redistribute it and/or modify it under
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
14 // the terms of the GNU General Public License as published by the Free
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
15 // Software Foundation; either version 2 or (at your option) any later version.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
16 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
17 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
18 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
19 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
20 // for more details.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
21 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
22 // You should have received a copy of the GNU General Public License along
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
23 // with eCos; if not, write to the Free Software Foundation, Inc.,
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
24 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
25 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
26 // As a special exception, if other files instantiate templates or use macros
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
27 // or inline functions from this file, or you compile this file and link it
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
28 // with other works to produce a work based on this file, this file does not
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
29 // by itself cause the resulting work to be covered by the GNU General Public
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
30 // License. However the source code for this file must still be made available
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
31 // in accordance with section (3) of the GNU General Public License.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
32 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
33 // This exception does not invalidate any other reasons why a work based on
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
34 // this file might be covered by the GNU General Public License.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
35 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
36 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
37 // at http://sources.redhat.com/ecos/ecos-license/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
38 // -------------------------------------------
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
39 //####ECOSGPLCOPYRIGHTEND####
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
40 //==========================================================================
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
41 //#####DESCRIPTIONBEGIN####
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
42 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
43 // Author(s): Chris Garry <cgarry@sweeneydesign.co.uk>
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
44 // Contributors:
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
45 // Date: 2003-08-22
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
46 // Purpose:
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
47 // Description: Header file for VNC Server
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
48 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
49 //####DESCRIPTIONEND####
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
50 //
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
51 //========================================================================*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
52
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
53
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
54 #include <cyg/kernel/kapi.h> /* Kernel API */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
55 #include <pkgconf/vnc_server.h>
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
56
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
57 /* Type to hold the frame format details */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
58 typedef struct
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
59 {
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
60 cyg_uint16 frame_width;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
61 cyg_uint16 frame_height;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
62 void * frame_buffer;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
63 bool rgb332;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
64 bool rgb555;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
65 bool rgb565;
1188
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
66 bool bgr233;
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
67 } vnc_frame_format_t;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
68
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
69
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
70 #ifdef CYGNUM_VNC_SERVER_INCLUDE_VNC_PRINTF
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
71 /* The typedefs for MWIMAGEBITS and MWCFONT and required to use */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
72 /* the font definition files in the src/fonts/ directory. These */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
73 /* typedefs are repeated in the device.h file also in the */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
74 /* src/fonts/ directory */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
75 typedef unsigned short MWIMAGEBITS; /* bitmap image unit size*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
76 typedef struct {
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
77 char * name; /* font name*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
78 int maxwidth; /* max width in pixels*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
79 int height; /* height in pixels*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
80 int ascent; /* ascent (baseline) height*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
81 int firstchar; /* first character in bitmap*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
82 int size; /* font size in characters*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
83 MWIMAGEBITS * bits; /* 16-bit right-padded bitmap data*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
84 unsigned short *offset; /* 256 offsets into bitmap data*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
85 unsigned char * width; /* 256 character widths or 0 if fixed*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
86 } MWCFONT;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
87
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
88 /* Type to hold rectangle size details */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
89 typedef struct
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
90 {
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
91 int chars;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
92 cyg_uint16 width;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
93 cyg_uint16 height;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
94 } vnc_printf_return_t;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
95 #endif
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
96
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
97 /* Type for colour values */
1188
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
98 #if defined(CYGNUM_VNC_SERVER_PIXEL_RGB332) || defined(CYGNUM_VNC_SERVER_PIXEL_BGR233)
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
99 typedef cyg_uint8 vnc_color_t;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
100 typedef cyg_uint8 vnc_colour_t;
1188
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
101 #elif defined(CYGNUM_VNC_SERVER_PIXEL_RGB555) || defined(CYGNUM_VNC_SERVER_PIXEL_RGB565)
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
102 typedef cyg_uint16 vnc_color_t;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
103 typedef cyg_uint16 vnc_colour_t;
1188
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
104 #else
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
105 #error "Unsupported color model"
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
106 #endif
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
107
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
108
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
109 /* Driver function prototypes */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
110 vnc_frame_format_t* VncGetInfo(void);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
111 void VncInit(vnc_colour_t colour);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
112 void VncDrawPixel(cyg_uint16 x, cyg_uint16 y, vnc_colour_t colour);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
113 vnc_colour_t VncReadPixel(cyg_uint16 x, cyg_uint16 y);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
114 void VncDrawHorzLine(cyg_uint16 x1, cyg_uint16 x2, cyg_uint16 y, vnc_colour_t colour);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
115 void VncDrawVertLine(cyg_uint16 x, cyg_uint16 y1, cyg_uint16 y2, vnc_colour_t colour);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
116 void VncFillRect(cyg_uint16 x1, cyg_uint16 y1, cyg_uint16 x2, cyg_uint16 y2, vnc_colour_t colour);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
117 void VncCopyRect(cyg_uint16 x1, cyg_uint16 y1, cyg_uint16 width, cyg_uint16 height, cyg_uint16 x2, cyg_uint16 y2);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
118 void VncCopyRect2Buffer(cyg_uint16 x, cyg_uint16 y, cyg_uint16 width, cyg_uint16 height,
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
119 void *buffer, cyg_uint16 buff_w, cyg_uint16 buff_h, cyg_uint16 x_off, cyg_uint16 y_off);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
120 void VncCopyBuffer2Rect(void *buffer, cyg_uint16 buff_w, cyg_uint16 buff_h, cyg_uint16 x_off, cyg_uint16 y_off,
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
121 cyg_uint16 x, cyg_uint16 y, cyg_uint16 width, cyg_uint16 height);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
122 void VncSoundBell(void);
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
123 #ifdef CYGNUM_VNC_SERVER_INCLUDE_VNC_PRINTF
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
124 vnc_printf_return_t VncPrintf(MWCFONT* font, int do_print, vnc_colour_t colour, int x, int y, const char *fmt, ... );
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
125 #endif
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
126
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
127
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
128 /* Macros to convert from RGB to colour values */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
129 #ifdef CYGNUM_VNC_SERVER_PIXEL_RGB332
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
130 #define VNC_RGB2COL(r,g,b) (vnc_colour_t)(((((cyg_uint8)r)&0xE0) >> 0) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
131 |((((cyg_uint8)g)&0xE0) >> 3) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
132 |((((cyg_uint8)b)&0xC0) >> 6))
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
133 #endif
1188
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
134 #ifdef CYGNUM_VNC_SERVER_PIXEL_BGR233
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
135 #define VNC_RGB2COL(r,g,b) (vnc_colour_t)(((((cyg_uint8)r)&0xE0) >> 5) \
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
136 |((((cyg_uint8)g)&0xE0) >> 2) \
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
137 |((((cyg_uint8)b)&0xC0) >> 0))
deed043a388c Add support for BGR233 pixel mode
gthomas
parents: 1180
diff changeset
138 #endif
1180
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
139 #ifdef CYGNUM_VNC_SERVER_PIXEL_RGB555
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
140 #define VNC_RGB2COL(r,g,b) (vnc_colour_t)(((((cyg_uint8)r)&0xF8) << 7) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
141 |((((cyg_uint8)g)&0xF8) << 2) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
142 |((((cyg_uint8)b)&0xF8) >> 3))
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
143 #endif
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
144 #ifdef CYGNUM_VNC_SERVER_PIXEL_RGB565
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
145 #define VNC_RGB2COL(r,g,b) (vnc_colour_t)(((((cyg_uint8)r)&0xF8) << 8) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
146 |((((cyg_uint8)g)&0xFC) << 3) \
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
147 |((((cyg_uint8)b)&0xF8) >> 3))
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
148 #endif
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
149
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
150
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
151 /* 16 defined colours for application use */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
152 #define VNC_BLACK VNC_RGB2COL( 0 , 0 , 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
153 #define VNC_BLUE VNC_RGB2COL( 0 , 0 , 128 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
154 #define VNC_GREEN VNC_RGB2COL( 0 , 128, 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
155 #define VNC_CYAN VNC_RGB2COL( 0 , 128, 128 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
156 #define VNC_RED VNC_RGB2COL( 128, 0 , 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
157 #define VNC_MAGENTA VNC_RGB2COL( 128, 0 , 128 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
158 #define VNC_BROWN VNC_RGB2COL( 128, 64 , 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
159 #define VNC_LTGRAY VNC_RGB2COL( 192, 192, 192 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
160 #define VNC_LTGREY VNC_RGB2COL( 192, 192, 192 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
161 #define VNC_GRAY VNC_RGB2COL( 128, 128, 128 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
162 #define VNC_GREY VNC_RGB2COL( 128, 128, 128 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
163 #define VNC_LTBLUE VNC_RGB2COL( 0 , 0 , 255 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
164 #define VNC_LTGREEN VNC_RGB2COL( 0 , 255, 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
165 #define VNC_LTCYAN VNC_RGB2COL( 0 , 255, 255 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
166 #define VNC_LTRED VNC_RGB2COL( 255, 0 , 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
167 #define VNC_LTMAGENTA VNC_RGB2COL( 255, 0 , 255 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
168 #define VNC_YELLOW VNC_RGB2COL( 255, 255, 0 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
169 #define VNC_WHITE VNC_RGB2COL( 255, 255, 255 )
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
170
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
171 #ifdef CYGNUM_VNC_SERVER_INCLUDE_VNC_PRINTF
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
172 /* Compiled in fonts*/
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
173 extern MWCFONT font_rom8x16, font_rom8x8;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
174 extern MWCFONT font_winFreeSansSerif11x13;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
175 extern MWCFONT font_winFreeSystem14x16; /* Default font */
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
176 extern MWCFONT font_helvB10, font_helvB12, font_helvR10;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
177 extern MWCFONT font_X5x7, font_X6x13;
f30dbfbd254c VNC server package from Chris Garry
gthomas
parents:
diff changeset
178 #endif