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.zip rockbox-6a972e02497d3015236189f72931c3d59fa51755.tar.gz rockbox-6a972e02497d3015236189f72931c3d59fa51755.tar.bz2 rockbox-6a972e02497d3015236189f72931c3d59fa51755.tar.xz | |
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 89ca2f3..bb6e0ea 100644 --- a/apps/plugins/lib/gray_scroll.c +++ b/apps/plugins/lib/gray_scroll.c @@ -10,10 +10,10 @@ * Greyscale framework * Scrolling routines * -* This is a generic framework to use grayscale display within Rockbox -* plugins. It obviously does not work for the player. +* This is a generic framework to display up to 33 shades of grey +* on low-depth bitmap LCDs (Archos b&w, Iriver 4-grey) within plugins. * -* Copyright (C) 2004-2005 Jens Arnold +* Copyright (C) 2004-2006 Jens Arnold * * All files in this archive are subject to the GNU General Public License. * See the file COPYING in the source tree root for full license agreement. @@ -23,10 +23,9 @@ * ****************************************************************************/ -#ifndef SIMULATOR /* not for simulator by now */ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP /* and also not for the Player */ +#ifdef HAVE_LCD_BITMAP #include "gray.h" /*** Scrolling ***/ @@ -117,6 +116,38 @@ void gray_scroll_down(int count) /*** Unbuffered scrolling functions ***/ +#ifdef SIMULATOR + +/* Scroll left */ +void gray_ub_scroll_left(int count) +{ + gray_scroll_left(count); + gray_update(); +} + +/* Scroll right */ +void gray_ub_scroll_right(int count) +{ + gray_scroll_right(count); + gray_update(); +} + +/* Scroll up */ +void gray_ub_scroll_up(int count) +{ + gray_scroll_up(count); + gray_update(); +} + +/* Scroll down */ +void gray_ub_scroll_down(int count) +{ + gray_scroll_down(count); + gray_update(); +} + +#else /* !SIMULATOR */ + /* Scroll left */ void gray_ub_scroll_left(int count) { @@ -545,7 +576,7 @@ void gray_ub_scroll_down(int count) #endif } } +#endif /* !SIMULATOR */ #endif /* HAVE_LCD_BITMAP */ -#endif /* !SIMULATOR */ |