diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-08-07 22:34:20 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-07 22:34:20 +0000 |
commit | e7aeebf0bfe5f673818f30757b23fea7b8436b81 (patch) | |
tree | 72736c8cd1fe08b32b8888344e10abb79023639f /apps | |
parent | fa02b6c239469325e594386f472546a89dae5878 (diff) |
Fix sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10481 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lib/gray_core.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 89d12ca58b..f08189dbc2 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c @@ -1470,7 +1470,10 @@ static void gray_screendump_hook(int fd) { int i; int x, y; - int gx, gy, mask; + int gx, gy; +#if (LCD_DEPTH == 1) || !defined(SIMULATOR) + int mask; +#endif #if LCD_PIXELFORMAT == HORIZONTAL_PACKING unsigned data; #else @@ -1629,9 +1632,7 @@ static void gray_screendump_hook(int fd) if ((unsigned)gy < (unsigned)_gray_info.height) { /* line contains greyscale (and maybe b&w) graphics */ -#ifdef SIMULATOR - (void)mask; -#else +#ifndef SIMULATOR unsigned char *grayptr = _gray_info.plane_data + MULU16(_gray_info.width, gy >> 3); mask = 1 << (gy & 7); |