diff options
Diffstat (limited to 'apps/plugins/lib/gray.h')
-rw-r--r-- | apps/plugins/lib/gray.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h index 7092b84958..96dec346cf 100644 --- a/apps/plugins/lib/gray.h +++ b/apps/plugins/lib/gray.h | |||
@@ -9,10 +9,10 @@ | |||
9 | * | 9 | * |
10 | * Greyscale framework | 10 | * Greyscale framework |
11 | * | 11 | * |
12 | * This is a generic framework to use greyscale display within Rockbox | 12 | * This is a generic framework to display up to 33 shades of grey |
13 | * plugins. It does not work for the player. | 13 | * on low-depth bitmap LCDs (Archos b&w, Iriver 4-grey) within plugins. |
14 | * | 14 | * |
15 | * Copyright (C) 2004-2005 Jens Arnold | 15 | * Copyright (C) 2004-2006 Jens Arnold |
16 | * | 16 | * |
17 | * All files in this archive are subject to the GNU General Public License. | 17 | * All files in this archive are subject to the GNU General Public License. |
18 | * See the file COPYING in the source tree root for full license agreement. | 18 | * See the file COPYING in the source tree root for full license agreement. |
@@ -25,7 +25,6 @@ | |||
25 | #ifndef __GRAY_H__ | 25 | #ifndef __GRAY_H__ |
26 | #define __GRAY_H__ | 26 | #define __GRAY_H__ |
27 | 27 | ||
28 | #ifndef SIMULATOR /* not for simulator by now */ | ||
29 | #include "plugin.h" | 28 | #include "plugin.h" |
30 | 29 | ||
31 | #ifdef HAVE_LCD_BITMAP /* and also not for the Player */ | 30 | #ifdef HAVE_LCD_BITMAP /* and also not for the Player */ |
@@ -129,17 +128,19 @@ struct _gray_info | |||
129 | int height; | 128 | int height; |
130 | int bheight; /* 8-pixel units */ | 129 | int bheight; /* 8-pixel units */ |
131 | int depth; /* number_of_bitplanes = (number_of_grayscales - 1) */ | 130 | int depth; /* number_of_bitplanes = (number_of_grayscales - 1) */ |
131 | unsigned long flags; /* various flags, see #defines */ | ||
132 | #ifndef SIMULATOR | ||
132 | int cur_plane; /* for the timer isr */ | 133 | int cur_plane; /* for the timer isr */ |
133 | int drawmode; /* current draw mode */ | ||
134 | int fg_brightness; /* current foreground brightness */ | ||
135 | int bg_brightness; /* current background brightness */ | ||
136 | long plane_size; | 134 | long plane_size; |
137 | unsigned long flags; /* various flags, see #defines */ | ||
138 | unsigned long randmask; /* mask for random value in _writepixel() */ | 135 | unsigned long randmask; /* mask for random value in _writepixel() */ |
139 | unsigned long *bitpattern; /* start of pattern table */ | 136 | unsigned long *bitpattern; /* start of pattern table */ |
140 | unsigned char *plane_data; /* start of bitplane data */ | 137 | unsigned char *plane_data; /* start of bitplane data */ |
138 | #endif | ||
141 | unsigned char *cur_buffer; /* start of current chunky pixel buffer */ | 139 | unsigned char *cur_buffer; /* start of current chunky pixel buffer */ |
142 | unsigned char *back_buffer;/* start of chunky pixel back buffer */ | 140 | unsigned char *back_buffer;/* start of chunky pixel back buffer */ |
141 | int drawmode; /* current draw mode */ | ||
142 | int fg_brightness; /* current foreground brightness */ | ||
143 | int bg_brightness; /* current background brightness */ | ||
143 | int curfont; /* current selected font */ | 144 | int curfont; /* current selected font */ |
144 | }; | 145 | }; |
145 | 146 | ||
@@ -149,5 +150,4 @@ extern struct _gray_info _gray_info; | |||
149 | extern short _gray_random_buffer; | 150 | extern short _gray_random_buffer; |
150 | 151 | ||
151 | #endif /* HAVE_LCD_BITMAP */ | 152 | #endif /* HAVE_LCD_BITMAP */ |
152 | #endif /* !SIMULATOR */ | ||
153 | #endif /* __GRAY_H__ */ | 153 | #endif /* __GRAY_H__ */ |