diff options
Diffstat (limited to 'uisimulator/common/lcd-common.h')
-rw-r--r-- | uisimulator/common/lcd-common.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/uisimulator/common/lcd-common.h b/uisimulator/common/lcd-common.h new file mode 100644 index 0000000000..08a5bbd3bb --- /dev/null +++ b/uisimulator/common/lcd-common.h | |||
@@ -0,0 +1,71 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Robert E. Hak <rhak@ramapo.edu> | ||
11 | * | ||
12 | * Windows Version Copyright (C) 2002 by Felix Arends | ||
13 | * X11 Version Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se> | ||
14 | * | ||
15 | * All files in this archive are subject to the GNU General Public License. | ||
16 | * See the file COPYING in the source tree root for full license agreement. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ****************************************************************************/ | ||
22 | |||
23 | #include "lcd.h" | ||
24 | |||
25 | #ifdef WIN32 | ||
26 | #ifndef __LCDWIN32_H__ | ||
27 | #define __LCDWIN32_H__ | ||
28 | |||
29 | #include "uisw32.h" | ||
30 | #include "lcd.h" | ||
31 | |||
32 | typedef struct | ||
33 | { | ||
34 | BITMAPINFOHEADER bmiHeader; | ||
35 | RGBQUAD bmiColors[2]; | ||
36 | } BITMAPINFO2; | ||
37 | |||
38 | #ifdef HAVE_LCD_BITMAP | ||
39 | /* the display */ | ||
40 | extern unsigned char display[LCD_WIDTH][LCD_HEIGHT/8]; | ||
41 | #else | ||
42 | #define DISP_X 112 | ||
43 | #define DISP_Y 64 | ||
44 | #endif /* HAVE_LCD_BITMAP */ | ||
45 | |||
46 | /* the ui display */ | ||
47 | extern char bitmap[LCD_HEIGHT][LCD_WIDTH]; | ||
48 | /* bitmap information */ | ||
49 | extern BITMAPINFO2 bmi; | ||
50 | #endif /* __LCDWIN32_H__ */ | ||
51 | |||
52 | #else | ||
53 | /* X11 */ | ||
54 | #define MARGIN_X 3 | ||
55 | #define MARGIN_Y 3 | ||
56 | |||
57 | #endif /* WIN32 */ | ||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||