diff options
Diffstat (limited to 'apps/plugins/lib')
-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) | |||
1470 | { | 1470 | { |
1471 | int i; | 1471 | int i; |
1472 | int x, y; | 1472 | int x, y; |
1473 | int gx, gy, mask; | 1473 | int gx, gy; |
1474 | #if (LCD_DEPTH == 1) || !defined(SIMULATOR) | ||
1475 | int mask; | ||
1476 | #endif | ||
1474 | #if LCD_PIXELFORMAT == HORIZONTAL_PACKING | 1477 | #if LCD_PIXELFORMAT == HORIZONTAL_PACKING |
1475 | unsigned data; | 1478 | unsigned data; |
1476 | #else | 1479 | #else |
@@ -1629,9 +1632,7 @@ static void gray_screendump_hook(int fd) | |||
1629 | if ((unsigned)gy < (unsigned)_gray_info.height) | 1632 | if ((unsigned)gy < (unsigned)_gray_info.height) |
1630 | { | 1633 | { |
1631 | /* line contains greyscale (and maybe b&w) graphics */ | 1634 | /* line contains greyscale (and maybe b&w) graphics */ |
1632 | #ifdef SIMULATOR | 1635 | #ifndef SIMULATOR |
1633 | (void)mask; | ||
1634 | #else | ||
1635 | unsigned char *grayptr = _gray_info.plane_data | 1636 | unsigned char *grayptr = _gray_info.plane_data |
1636 | + MULU16(_gray_info.width, gy >> 3); | 1637 | + MULU16(_gray_info.width, gy >> 3); |
1637 | mask = 1 << (gy & 7); | 1638 | mask = 1 << (gy & 7); |