diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/lib/grey_draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/lib/grey_draw.c b/apps/plugins/lib/grey_draw.c index c1e6376cfe..3b81694426 100644 --- a/apps/plugins/lib/grey_draw.c +++ b/apps/plugins/lib/grey_draw.c | |||
@@ -447,6 +447,7 @@ void grey_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, | |||
447 | src_end = src + width; | 447 | src_end = src + width; |
448 | dwidth = _grey_info.width; | 448 | dwidth = _grey_info.width; |
449 | dst = &_grey_info.buffer[_GREY_MULUQ(dwidth, y) + x]; | 449 | dst = &_grey_info.buffer[_GREY_MULUQ(dwidth, y) + x]; |
450 | dst_end = dst + _GREY_MULUQ(dwidth, height); | ||
450 | 451 | ||
451 | if (drmode & DRMODE_INVERSEVID) | 452 | if (drmode & DRMODE_INVERSEVID) |
452 | { | 453 | { |
@@ -461,8 +462,6 @@ void grey_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, | |||
461 | unsigned data = (*src_col ^ dmask) >> src_y; | 462 | unsigned data = (*src_col ^ dmask) >> src_y; |
462 | int fg, bg; | 463 | int fg, bg; |
463 | 464 | ||
464 | dst_end = dst_col + _GREY_MULUQ(dwidth, height); | ||
465 | |||
466 | #define UPDATE_SRC do { \ | 465 | #define UPDATE_SRC do { \ |
467 | data >>= 1; \ | 466 | data >>= 1; \ |
468 | if (data == 0x001) { \ | 467 | if (data == 0x001) { \ |