diff options
Diffstat (limited to 'apps/plugins/lib/gray_parm.c')
-rw-r--r-- | apps/plugins/lib/gray_parm.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/apps/plugins/lib/gray_parm.c b/apps/plugins/lib/gray_parm.c index 77156852c5..c6305421c1 100644 --- a/apps/plugins/lib/gray_parm.c +++ b/apps/plugins/lib/gray_parm.c | |||
@@ -10,10 +10,10 @@ | |||
10 | * Greyscale framework | 10 | * Greyscale framework |
11 | * Parameter handling | 11 | * Parameter handling |
12 | * | 12 | * |
13 | * This is a generic framework to use grayscale display within Rockbox | 13 | * This is a generic framework to display up to 33 shades of grey |
14 | * plugins. It obviously does not work for the player. | 14 | * on low-depth bitmap LCDs (Archos b&w, Iriver 4-grey) within plugins. |
15 | * | 15 | * |
16 | * Copyright (C) 2004-2005 Jens Arnold | 16 | * Copyright (C) 2004-2006 Jens Arnold |
17 | * | 17 | * |
18 | * All files in this archive are subject to the GNU General Public License. | 18 | * All files in this archive are subject to the GNU General Public License. |
19 | * See the file COPYING in the source tree root for full license agreement. | 19 | * See the file COPYING in the source tree root for full license agreement. |
@@ -23,10 +23,9 @@ | |||
23 | * | 23 | * |
24 | ****************************************************************************/ | 24 | ****************************************************************************/ |
25 | 25 | ||
26 | #ifndef SIMULATOR /* not for simulator by now */ | ||
27 | #include "plugin.h" | 26 | #include "plugin.h" |
28 | 27 | ||
29 | #ifdef HAVE_LCD_BITMAP /* and also not for the Player */ | 28 | #ifdef HAVE_LCD_BITMAP |
30 | #include "gray.h" | 29 | #include "gray.h" |
31 | 30 | ||
32 | /* Set position of the top left corner of the greyscale overlay | 31 | /* Set position of the top left corner of the greyscale overlay |
@@ -37,7 +36,14 @@ void gray_set_position(int x, int by) | |||
37 | _gray_info.by = by; | 36 | _gray_info.by = by; |
38 | 37 | ||
39 | if (_gray_info.flags & _GRAY_RUNNING) | 38 | if (_gray_info.flags & _GRAY_RUNNING) |
39 | { | ||
40 | #ifdef SIMULATOR | ||
41 | gray_deferred_lcd_update(); | ||
42 | gray_update(); | ||
43 | #else | ||
40 | _gray_info.flags |= _GRAY_DEFERRED_UPDATE; | 44 | _gray_info.flags |= _GRAY_DEFERRED_UPDATE; |
45 | #endif | ||
46 | } | ||
41 | } | 47 | } |
42 | 48 | ||
43 | /* Set the draw mode for subsequent drawing operations */ | 49 | /* Set the draw mode for subsequent drawing operations */ |
@@ -103,5 +109,3 @@ int gray_getstringsize(const unsigned char *str, int *w, int *h) | |||
103 | } | 109 | } |
104 | 110 | ||
105 | #endif /* HAVE_LCD_BITMAP */ | 111 | #endif /* HAVE_LCD_BITMAP */ |
106 | #endif /* !SIMULATOR */ | ||
107 | |||