Revise r23225 a bit, removing the debug_printf function and implementing more generic...
[kugel-rb.git] / firmware / export / lcd.h
blob91217ff76ca2d3c399cd357fc783a0761d54d275
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Alan Korr
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __LCD_H__
23 #define __LCD_H__
25 #include <stdbool.h>
26 #include "cpu.h"
27 #include "config.h"
29 #define VP_FLAG_ALIGN_RIGHT 0x01
30 #define VP_FLAG_ALIGN_CENTER 0x02
32 #define VP_FLAG_ALIGNMENT_MASK \
33 (VP_FLAG_ALIGN_RIGHT|VP_FLAG_ALIGN_CENTER)
35 #define VP_IS_RTL(vp) (((vp)->flags & VP_FLAG_ALIGNMENT_MASK) == VP_FLAG_ALIGN_RIGHT)
37 struct viewport {
38 int x;
39 int y;
40 int width;
41 int height;
42 #ifdef HAVE_LCD_BITMAP
43 int flags;
44 int font;
45 int drawmode;
46 #endif
47 #if LCD_DEPTH > 1
48 unsigned fg_pattern;
49 unsigned bg_pattern;
50 #ifdef HAVE_LCD_COLOR
51 unsigned lss_pattern;
52 unsigned lse_pattern;
53 unsigned lst_pattern;
54 #endif
55 #endif
58 /* Frame buffer stride
60 * Stride describes the amount that you need to increment to get to the next
61 * line. For screens that have the pixels in contiguous horizontal strips
62 * stride should be equal to the image width.
64 * For example, if the screen pixels are layed out as follows:
66 * width0 width1 width2 widthX-1
67 * ------ ------ ------ ------------------ --------
68 * height0 | pixel0 pixel1 pixel2 ----------------> pixelX-1
69 * height1 | pixelX
71 * then you need to add X pixels to get to the next line. (the next line
72 * in this case is height1).
74 * Similarly, if the screen has the pixels in contiguous vertical strips
75 * the stride would be equal to the image height.
77 * For example if the screen pixels are layed out as follows:
79 * width0 width1
80 * ------ ------
81 * height0 | pixel0 pixelY
82 * height1 | pixel1
83 * height2 | pixel2
84 * | | |
85 * \|/ | \|/
86 * heightY-1 | pixelY-1
88 * then you would need to add Y pixels to get to the next line (the next
89 * line in this case is from width0 to width1).
91 * The remote might have a different stride than the main screen so the screen
92 * number needs to be passed to the STRIDE macro so that the appropriate height
93 * or width can be passed to the lcd_bitmap, or lcd_remote_bitmap calls.
95 * STRIDE_REMOTE and STRIDE_MAIN should never be used when it is not clear whether
96 * lcd_remote_bitmap calls or lcd_bitmap calls are being made (for example the
97 * screens api).
99 * Screen should always use the screen_type enum that is at the top of this
100 * header.
102 enum screen_type {
103 SCREEN_MAIN
104 #ifdef HAVE_REMOTE_LCD
105 ,SCREEN_REMOTE
106 #endif
109 #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE
110 #define STRIDE_MAIN(w, h) (h)
111 #else
112 #define STRIDE_MAIN(w, h) (w)
113 #endif
115 #define STRIDE_REMOTE(w, h) (w)
117 #define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \
118 (h)):STRIDE_REMOTE((w),(h)))
120 #define STYLE_DEFAULT 0x00000000
121 #define STYLE_COLORED 0x10000000
122 #define STYLE_INVERT 0x20000000
123 #define STYLE_COLORBAR 0x40000000
124 #define STYLE_GRADIENT 0x80000000
125 #define STYLE_MODE_MASK 0xF0000000
126 #define STYLE_COLOR_MASK 0x0000FFFF
127 #ifdef HAVE_LCD_COLOR
128 #define STYLE_CURLN_MASK 0x0000FF00
129 #define STYLE_MAXLN_MASK 0x000000FF
130 #define CURLN_PACK(x) (((x)<<8) & STYLE_CURLN_MASK)
131 #define CURLN_UNPACK(x) ((unsigned char)(((x)&STYLE_CURLN_MASK) >> 8))
132 #define NUMLN_PACK(x) ((x) & STYLE_MAXLN_MASK)
133 #define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK))
134 #endif
136 #ifdef HAVE_LCD_BITMAP
137 #if LCD_DEPTH <=8
138 #if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \
139 || (LCD_PIXELFORMAT == HORIZONTAL_INTERLEAVED)
140 typedef unsigned short fb_data;
141 #define FB_DATA_SZ 2
142 #else
143 typedef unsigned char fb_data;
144 #define FB_DATA_SZ 1
145 #endif
146 #elif LCD_DEPTH <= 16
147 typedef unsigned short fb_data;
148 #define FB_DATA_SZ 2
149 #else /* LCD_DEPTH > 16 */
150 typedef unsigned long fb_data;
151 #define FB_DATA_SZ 4
152 #endif /* LCD_DEPTH */
154 #else /* LCD_CHARCELLS */
155 typedef unsigned char fb_data;
156 #endif
158 #if defined(HAVE_LCD_MODES)
159 void lcd_set_mode(int mode);
160 #define LCD_MODE_RGB565 0x00000001
161 #define LCD_MODE_YUV 0x00000002
162 #define LCD_MODE_PAL256 0x00000004
164 #if HAVE_LCD_MODES & LCD_MODE_PAL256
165 void lcd_blit_pal256(unsigned char *src, int src_x, int src_y, int x, int y,
166 int width, int height);
167 void lcd_pal256_update_pal(fb_data *palette);
168 #endif
169 #endif
172 /* common functions */
173 extern void lcd_write_command(int byte);
174 extern void lcd_write_command_e(int cmd, int data);
175 extern void lcd_write_command_ex(int cmd, int data1, int data2);
176 extern void lcd_write_data(const fb_data* p_bytes, int count);
177 extern void lcd_init(void);
178 extern void lcd_init_device(void);
180 extern void lcd_backlight(bool on);
181 extern int lcd_default_contrast(void);
182 extern void lcd_set_contrast(int val);
183 extern int lcd_getwidth(void);
184 extern int lcd_getheight(void);
185 extern int lcd_getstringsize(const unsigned char *str, int *w, int *h);
187 extern void lcd_set_viewport(struct viewport* vp);
188 extern void lcd_update(void);
189 extern void lcd_update_viewport(void);
190 extern void lcd_clear_viewport(void);
191 extern void lcd_clear_display(void);
192 extern void lcd_putsxy(int x, int y, const unsigned char *string);
193 extern void lcd_puts(int x, int y, const unsigned char *string);
194 extern void lcd_putsf(int x, int y, const unsigned char *fmt, ...);
195 extern void lcd_puts_style(int x, int y, const unsigned char *string, int style);
196 extern void lcd_puts_offset(int x, int y, const unsigned char *str, int offset);
197 extern void lcd_puts_scroll_offset(int x, int y, const unsigned char *string,
198 int offset);
199 extern void lcd_putc(int x, int y, unsigned long ucs);
200 extern void lcd_stop_scroll(void);
201 extern void lcd_bidir_scroll(int threshold);
202 extern void lcd_scroll_speed(int speed);
203 extern void lcd_scroll_delay(int ms);
204 extern void lcd_puts_scroll(int x, int y, const unsigned char* string);
205 extern void lcd_puts_scroll_style(int x, int y, const unsigned char* string,
206 int style);
208 #ifdef HAVE_LCD_BITMAP
210 /* performance function */
211 #if defined(HAVE_LCD_COLOR)
212 #if MEMORYSIZE > 2
213 #define LCD_YUV_DITHER 0x1
214 extern void lcd_yuv_set_options(unsigned options);
215 extern void lcd_blit_yuv(unsigned char * const src[3],
216 int src_x, int src_y, int stride,
217 int x, int y, int width, int height);
218 #endif /* MEMORYSIZE > 2 */
219 #else
220 extern void lcd_blit_mono(const unsigned char *data, int x, int by, int width,
221 int bheight, int stride);
222 extern void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
223 int bx, int by, int bwidth, int bheight,
224 int stride);
225 #endif
228 /* update a fraction of the screen */
229 extern void lcd_update_rect(int x, int y, int width, int height);
230 extern void lcd_update_viewport_rect(int x, int y, int width, int height);
232 #ifdef HAVE_REMOTE_LCD
233 extern void lcd_remote_update(void);
234 /* update a fraction of the screen */
235 extern void lcd_remote_update_rect(int x, int y, int width, int height);
236 #endif /* HAVE_REMOTE_LCD */
237 #endif /* HAVE_LCD_BITMAP */
239 #ifdef HAVE_LCD_CHARCELLS
241 /* Icon definitions for lcd_icon() */
242 enum
244 ICON_BATTERY = 0,
245 ICON_BATTERY_1,
246 ICON_BATTERY_2,
247 ICON_BATTERY_3,
248 ICON_USB,
249 ICON_PLAY,
250 ICON_RECORD,
251 ICON_PAUSE,
252 ICON_AUDIO,
253 ICON_REPEAT,
254 ICON_1,
255 ICON_VOLUME,
256 ICON_VOLUME_1,
257 ICON_VOLUME_2,
258 ICON_VOLUME_3,
259 ICON_VOLUME_4,
260 ICON_VOLUME_5,
261 ICON_PARAM
264 void lcd_icon(int icon, bool enable);
265 void lcd_double_height(bool on);
266 void lcd_define_pattern(unsigned long ucs, const char *pattern);
267 unsigned long lcd_get_locked_pattern(void);
268 void lcd_unlock_pattern(unsigned long ucs);
269 void lcd_put_cursor(int x, int y, unsigned long cursor_ucs);
270 void lcd_remove_cursor(void);
271 #define JUMP_SCROLL_ALWAYS 5
272 extern void lcd_jump_scroll(int mode); /* 0=off, 1=once, ..., ALWAYS */
273 extern void lcd_jump_scroll_delay(int ms);
274 #endif /* HAVE_LCD_CHARCELLS */
276 /* Draw modes */
277 #define DRMODE_COMPLEMENT 0
278 #define DRMODE_BG 1
279 #define DRMODE_FG 2
280 #define DRMODE_SOLID 3
281 #define DRMODE_INVERSEVID 4 /* used as bit modifier for basic modes */
283 /* Low-level drawing function types */
284 typedef void lcd_pixelfunc_type(int x, int y);
285 typedef void lcd_blockfunc_type(fb_data *address, unsigned mask, unsigned bits);
286 #if LCD_DEPTH >= 8
287 typedef void lcd_fastpixelfunc_type(fb_data *address);
288 #endif
290 #ifdef HAVE_LCD_BITMAP
292 #if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && \
293 LCD_REMOTE_DEPTH > 1
294 /* Just return color for screens use */
295 static inline unsigned lcd_color_to_native(unsigned color)
296 { return color; }
297 #define SCREEN_COLOR_TO_NATIVE(screen, color) (screen)->color_to_native(color)
298 #else
299 #define SCREEN_COLOR_TO_NATIVE(screen, color) (color)
300 #endif
302 #ifdef HAVE_LCD_COLOR
303 #if LCD_PIXELFORMAT == RGB565 || LCD_PIXELFORMAT == RGB565SWAPPED
304 #define LCD_MAX_RED 31
305 #define LCD_MAX_GREEN 63
306 #define LCD_MAX_BLUE 31
307 #define LCD_RED_BITS 5
308 #define LCD_GREEN_BITS 6
309 #define LCD_BLUE_BITS 5
311 /* pack/unpack native RGB values */
312 #define _RGBPACK_LCD(r, g, b) ( ((r) << 11) | ((g) << 5) | (b) )
313 #define _RGB_UNPACK_RED_LCD(x) ( (((x) >> 11) ) )
314 #define _RGB_UNPACK_GREEN_LCD(x) ( (((x) >> 5) & 0x3f) )
315 #define _RGB_UNPACK_BLUE_LCD(x) ( (((x) ) & 0x1f) )
317 /* pack/unpack 24-bit RGB values */
318 #define _RGBPACK(r, g, b) _RGBPACK_LCD((r) >> 3, (g) >> 2, (b) >> 3)
319 #define _RGB_UNPACK_RED(x) ( (((x) >> 8) & 0xf8) | (((x) >> 13) & 0x07) )
320 #define _RGB_UNPACK_GREEN(x) ( (((x) >> 3) & 0xfc) | (((x) >> 9) & 0x03) )
321 #define _RGB_UNPACK_BLUE(x) ( (((x) << 3) & 0xf8) | (((x) >> 2) & 0x07) )
323 #if (LCD_PIXELFORMAT == RGB565SWAPPED)
324 /* RGB3553 */
325 #define _LCD_UNSWAP_COLOR(x) swap16(x)
326 #define LCD_RGBPACK_LCD(r, g, b) ( (((r) << 3) ) | \
327 (((g) >> 3) ) | \
328 (((g) & 0x07) << 13) | \
329 (((b) << 8) ) )
330 #define LCD_RGBPACK(r, g, b) ( (((r) >> 3) << 3) | \
331 (((g) >> 5) ) | \
332 (((g) & 0x1c) << 11) | \
333 (((b) >> 3) << 8) )
334 /* swap color once - not currenly used in static inits */
335 #define _SWAPUNPACK(x, _unp_) \
336 ({ typeof (x) _x_ = swap16(x); _unp_(_x_); })
337 #define RGB_UNPACK_RED(x) _SWAPUNPACK((x), _RGB_UNPACK_RED)
338 #define RGB_UNPACK_GREEN(x) _SWAPUNPACK((x), _RGB_UNPACK_GREEN)
339 #define RGB_UNPACK_BLUE(x) _SWAPUNPACK((x), _RGB_UNPACK_BLUE)
340 #define RGB_UNPACK_RED_LCD(x) _SWAPUNPACK((x), _RGB_UNPACK_RED_LCD)
341 #define RGB_UNPACK_GREEN_LCD(x) _SWAPUNPACK((x), _RGB_UNPACK_GREEN_LCD)
342 #define RGB_UNPACK_BLUE_LCD(x) _SWAPUNPACK((x), _RGB_UNPACK_BLUE_LCD)
343 #else /* LCD_PIXELFORMAT == RGB565 */
344 /* RGB565 */
345 #define _LCD_UNSWAP_COLOR(x) (x)
346 #define LCD_RGBPACK(r, g, b) _RGBPACK((r), (g), (b))
347 #define LCD_RGBPACK_LCD(r, g, b) _RGBPACK_LCD((r), (g), (b))
348 #define RGB_UNPACK_RED(x) _RGB_UNPACK_RED(x)
349 #define RGB_UNPACK_GREEN(x) _RGB_UNPACK_GREEN(x)
350 #define RGB_UNPACK_BLUE(x) _RGB_UNPACK_BLUE(x)
351 #define RGB_UNPACK_RED_LCD(x) _RGB_UNPACK_RED_LCD(x)
352 #define RGB_UNPACK_GREEN_LCD(x) _RGB_UNPACK_GREEN_LCD(x)
353 #define RGB_UNPACK_BLUE_LCD(x) _RGB_UNPACK_BLUE_LCD(x)
354 #endif /* RGB565* */
355 #else
356 /* other colour depths */
357 #endif
359 #define LCD_BLACK LCD_RGBPACK(0, 0, 0)
360 #define LCD_DARKGRAY LCD_RGBPACK(85, 85, 85)
361 #define LCD_LIGHTGRAY LCD_RGBPACK(170, 170, 170)
362 #define LCD_WHITE LCD_RGBPACK(255, 255, 255)
363 #define LCD_DEFAULT_FG LCD_WHITE
364 #define LCD_DEFAULT_BG LCD_BLACK
365 #define LCD_DEFAULT_LS LCD_WHITE
367 #elif LCD_DEPTH > 1 /* greyscale */
369 #define LCD_MAX_LEVEL ((1 << LCD_DEPTH) - 1)
370 #define LCD_BRIGHTNESS(y) (((y) * LCD_MAX_LEVEL + 127) / 255)
372 #define LCD_BLACK LCD_BRIGHTNESS(0)
373 #define LCD_DARKGRAY LCD_BRIGHTNESS(85)
374 #define LCD_LIGHTGRAY LCD_BRIGHTNESS(170)
375 #define LCD_WHITE LCD_BRIGHTNESS(255)
376 #define LCD_DEFAULT_FG LCD_BLACK
377 #define LCD_DEFAULT_BG LCD_WHITE
379 #endif /* HAVE_LCD_COLOR */
381 /* Frame buffer dimensions */
382 #if LCD_DEPTH == 1
383 #if LCD_PIXELFORMAT == HORIZONTAL_PACKING
384 #define LCD_FBWIDTH ((LCD_WIDTH+7)/8)
385 #else /* LCD_PIXELFORMAT == VERTICAL_PACKING */
386 #define LCD_FBHEIGHT ((LCD_HEIGHT+7)/8)
387 #endif /* LCD_PIXELFORMAT */
388 #elif LCD_DEPTH == 2
389 #if LCD_PIXELFORMAT == HORIZONTAL_PACKING
390 #define LCD_FBWIDTH ((LCD_WIDTH+3)/4)
391 #elif LCD_PIXELFORMAT == VERTICAL_PACKING
392 #define LCD_FBHEIGHT ((LCD_HEIGHT+3)/4)
393 #elif LCD_PIXELFORMAT == VERTICAL_INTERLEAVED
394 #define LCD_FBHEIGHT ((LCD_HEIGHT+7)/8)
395 #endif /* LCD_PIXELFORMAT */
396 #endif /* LCD_DEPTH */
397 /* Set defaults if not defined different yet. The defaults apply to both
398 * dimensions for LCD_DEPTH >= 8 */
399 #ifndef LCD_FBWIDTH
400 #define LCD_FBWIDTH LCD_WIDTH
401 #endif
402 #ifndef LCD_FBHEIGHT
403 #define LCD_FBHEIGHT LCD_HEIGHT
404 #endif
405 /* The actual framebuffer */
406 extern fb_data lcd_framebuffer[LCD_FBHEIGHT][LCD_FBWIDTH];
408 /** Port-specific functions. Enable in port config file. **/
409 #ifdef HAVE_REMOTE_LCD_AS_MAIN
410 void lcd_on(void);
411 void lcd_off(void);
412 void lcd_poweroff(void);
413 #endif
415 #ifdef HAVE_LCD_ENABLE
416 /* Enable/disable the main display. */
417 extern void lcd_enable(bool on);
418 #endif /* HAVE_LCD_ENABLE */
420 #ifdef HAVE_LCD_SLEEP
421 /* Put the LCD into a power saving state deeper than lcd_enable(false). */
422 extern void lcd_sleep(void);
423 #endif /* HAVE_LCD_SLEEP */
424 #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
425 /* Register a hook that is called when the lcd is powered and after the
426 * framebuffer data is synchronized */
427 /* Sansa Clip has these function in it's lcd driver, since it's the only
428 * 1-bit display featuring lcd_active, so far */
429 extern bool lcd_active(void);
430 extern void lcd_activation_set_hook(void (*enable_hook)(void));
431 extern void lcd_activation_call_hook(void);
432 #endif
434 #ifdef HAVE_LCD_SHUTDOWN
435 void lcd_shutdown(void);
436 #endif
438 /* Bitmap formats */
439 enum
441 FORMAT_MONO,
442 FORMAT_NATIVE,
443 FORMAT_ANY /* For passing to read_bmp_file() */
446 #define FORMAT_TRANSPARENT 0x40000000
447 #define FORMAT_DITHER 0x20000000
448 #define FORMAT_REMOTE 0x10000000
449 #define FORMAT_RESIZE 0x08000000
450 #define FORMAT_KEEP_ASPECT 0x04000000
451 #define FORMAT_RETURN_SIZE 0x02000000
453 #define TRANSPARENT_COLOR LCD_RGBPACK(255,0,255)
454 #define REPLACEWITHFG_COLOR LCD_RGBPACK(0,255,255)
456 struct bitmap {
457 int width;
458 int height;
459 #if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)
460 int format;
461 unsigned char *maskdata;
462 #endif
463 unsigned char *data;
466 extern void lcd_set_invert_display(bool yesno);
467 #ifdef HAVE_BACKLIGHT_INVERSION
468 extern void lcd_set_backlight_inversion(bool yesno);
469 #endif /* HAVE_BACKLIGHT_INVERSION */
470 extern void lcd_set_flip(bool yesno);
472 extern void lcd_set_drawmode(int mode);
473 extern int lcd_get_drawmode(void);
474 extern void lcd_setfont(int font);
475 extern int lcd_getfont(void);
477 extern void lcd_puts_style_offset(int x, int y, const unsigned char *str,
478 int style, int offset);
479 extern void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string,
480 int style, int offset);
482 /* low level drawing function pointer arrays */
483 #if LCD_DEPTH >= 8
484 extern lcd_fastpixelfunc_type* const *lcd_fastpixelfuncs;
485 #elif LCD_DEPTH > 1
486 extern lcd_pixelfunc_type* const *lcd_pixelfuncs;
487 extern lcd_blockfunc_type* const *lcd_blockfuncs;
488 #else /* LCD_DEPTH == 1*/
489 extern lcd_pixelfunc_type* const lcd_pixelfuncs[8];
490 extern lcd_blockfunc_type* const lcd_blockfuncs[8];
491 #endif /* LCD_DEPTH */
493 extern void lcd_drawpixel(int x, int y);
494 extern void lcd_drawline(int x1, int y1, int x2, int y2);
495 extern void lcd_hline(int x1, int x2, int y);
496 extern void lcd_vline(int x, int y1, int y2);
497 extern void lcd_drawrect(int x, int y, int width, int height);
498 extern void lcd_fillrect(int x, int y, int width, int height);
499 extern void lcd_bitmap_part(const fb_data *src, int src_x, int src_y,
500 int stride, int x, int y, int width, int height);
501 extern void lcd_bitmap(const fb_data *src, int x, int y, int width,
502 int height);
504 extern void lcd_scroll_step(int pixels);
506 #if LCD_DEPTH > 1
507 extern void lcd_set_foreground(unsigned foreground);
508 extern unsigned lcd_get_foreground(void);
509 extern void lcd_set_background(unsigned background);
510 extern unsigned lcd_get_background(void);
511 #ifdef HAVE_LCD_COLOR
512 extern void lcd_set_selector_start(unsigned selector);
513 extern void lcd_set_selector_end(unsigned selector);
514 extern void lcd_set_selector_text(unsigned selector_text);
515 #endif
516 extern void lcd_set_drawinfo(int mode, unsigned foreground,
517 unsigned background);
518 void lcd_set_backdrop(fb_data* backdrop);
520 fb_data* lcd_get_backdrop(void);
522 extern void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y,
523 int stride, int x, int y, int width, int height);
524 extern void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width,
525 int height);
526 extern void lcd_bitmap_transparent_part(const fb_data *src,
527 int src_x, int src_y,
528 int stride, int x, int y, int width,
529 int height);
530 extern void lcd_bitmap_transparent(const fb_data *src, int x, int y,
531 int width, int height);
532 #else /* LCD_DEPTH == 1 */
533 #define lcd_mono_bitmap lcd_bitmap
534 #define lcd_mono_bitmap_part lcd_bitmap_part
535 #endif /* LCD_DEPTH */
537 #endif /* HAVE_LCD_BITMAP */
539 #endif /* __LCD_H__ */