summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/resize.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index c11a8d6ace..476188488c 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -455,8 +455,11 @@ static inline bool scale_nearest(struct bitmap *bm,
455 const int rowstop = rset->rowstop; 455 const int rowstop = rset->rowstop;
456 const int fb_width = get_fb_width(bm, false); 456 const int fb_width = get_fb_width(bm, false);
457 long last_tick = current_tick; 457 long last_tick = current_tick;
458 int ix, ox, lx, xe, iy, oy, ly, ye, yet, oyt; 458 /* yet/oyt will always be initialized before use, since they are set in the
459 int xelim, ixls, xels, yelim, iyls, yels, oyls, p; 459 inside loop, and not used elsewhere until the end of the outside loop.
460 */
461 int ix, ox, lx, xe, iy, oy, ly, ye, yet = yet, oyt = oyt;
462 int xelim, ixls, xels, yelim, iyls, yels, p;
460 struct img_part *cur_part; 463 struct img_part *cur_part;
461#ifndef HAVE_LCD_COLOR 464#ifndef HAVE_LCD_COLOR
462 fb_data *dest = dest, *dest_t; 465 fb_data *dest = dest, *dest_t;
@@ -476,7 +479,6 @@ static inline bool scale_nearest(struct bitmap *bm,
476 yelim = sh == dh - 1 ? dh : dh - 1; 479 yelim = sh == dh - 1 ? dh : dh - 1;
477 iyls = yelim ? sh / yelim : 1; 480 iyls = yelim ? sh / yelim : 1;
478 yels = iyls * (yelim ? yelim : 1); 481 yels = iyls * (yelim ? yelim : 1);
479 oyls *= rowstep;
480 int delta = 127; 482 int delta = 127;
481#if LCD_PIXELFORMAT == HORIZONTAL_PACKING || \ 483#if LCD_PIXELFORMAT == HORIZONTAL_PACKING || \
482 (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_PIXELFORMAT == HORIZONTAL_PACKING) 484 (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_PIXELFORMAT == HORIZONTAL_PACKING)