diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-02-26 13:37:42 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-02-26 13:37:42 +0000 |
commit | 6a972e02497d3015236189f72931c3d59fa51755 (patch) | |
tree | 0c0185dd66b47d7d1ee2d91e4a3ffb6dbabcc7d1 /apps/plugins/lib/gray_scroll.c | |
parent | 14fe89aa8d2ef05595bdba0e0b78f021f3e8d087 (diff) | |
download | rockbox-6a972e02497d3015236189f72931c3d59fa51755.tar.gz rockbox-6a972e02497d3015236189f72931c3d59fa51755.zip |
Finally - grayscale library support for the simulators. Currently SDL only, win32 and x11 won't link anymore due to missing simulator functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8845 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray_scroll.c')
-rw-r--r-- | apps/plugins/lib/gray_scroll.c | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/apps/plugins/lib/gray_scroll.c b/apps/plugins/lib/gray_scroll.c index 89ca2f37c3..bb6e0ea5bd 100644 --- a/apps/plugins/lib/gray_scroll.c +++ b/apps/plugins/lib/gray_scroll.c | |||
@@ -10,10 +10,10 @@ | |||
10 | * Greyscale framework | 10 | * Greyscale framework |
11 | * Scrolling routines | 11 | * Scrolling routines |
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 | /*** Scrolling ***/ | 31 | /*** Scrolling ***/ |
@@ -117,6 +116,38 @@ void gray_scroll_down(int count) | |||
117 | 116 | ||
118 | /*** Unbuffered scrolling functions ***/ | 117 | /*** Unbuffered scrolling functions ***/ |
119 | 118 | ||
119 | #ifdef SIMULATOR | ||
120 | |||
121 | /* Scroll left */ | ||
122 | void gray_ub_scroll_left(int count) | ||
123 | { | ||
124 | gray_scroll_left(count); | ||
125 | gray_update(); | ||
126 | } | ||
127 | |||
128 | /* Scroll right */ | ||
129 | void gray_ub_scroll_right(int count) | ||
130 | { | ||
131 | gray_scroll_right(count); | ||
132 | gray_update(); | ||
133 | } | ||
134 | |||
135 | /* Scroll up */ | ||
136 | void gray_ub_scroll_up(int count) | ||
137 | { | ||
138 | gray_scroll_up(count); | ||
139 | gray_update(); | ||
140 | } | ||
141 | |||
142 | /* Scroll down */ | ||
143 | void gray_ub_scroll_down(int count) | ||
144 | { | ||
145 | gray_scroll_down(count); | ||
146 | gray_update(); | ||
147 | } | ||
148 | |||
149 | #else /* !SIMULATOR */ | ||
150 | |||
120 | /* Scroll left */ | 151 | /* Scroll left */ |
121 | void gray_ub_scroll_left(int count) | 152 | void gray_ub_scroll_left(int count) |
122 | { | 153 | { |
@@ -545,7 +576,7 @@ void gray_ub_scroll_down(int count) | |||
545 | #endif | 576 | #endif |
546 | } | 577 | } |
547 | } | 578 | } |
579 | #endif /* !SIMULATOR */ | ||
548 | 580 | ||
549 | #endif /* HAVE_LCD_BITMAP */ | 581 | #endif /* HAVE_LCD_BITMAP */ |
550 | #endif /* !SIMULATOR */ | ||
551 | 582 | ||