diff options
author | Dave Davenport <qball@gmpclient.org> | 2021-01-17 16:15:04 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2021-01-17 16:15:04 +0100 |
commit | 75e361ecabb81ad64139f81b52bdfb6a356c5d81 (patch) | |
tree | ca065b2d2989b11146f316e7191972623aacf16f | |
parent | 519b2a22eb439743c027de128fabfece6d8a2df7 (diff) |
Reduce scope of variables.
-rw-r--r-- | source/rofi-icon-fetcher.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c index f141b6ed..cfe9d747 100644 --- a/source/rofi-icon-fetcher.c +++ b/source/rofi-icon-fetcher.c @@ -212,8 +212,8 @@ static cairo_surface_t * rofi_icon_fetcher_get_surface_from_pixbuf ( GdkPixbuf gint cstride; guint lo, o; guchar a = 0xff; - const guchar *pixels_end, *line, *line_end; - guchar *cpixels, *cline; + const guchar *pixels_end, *line; + guchar *cpixels; pixels_end = pixels + height * stride; o = alpha ? 4 : 3; @@ -226,8 +226,8 @@ static cairo_surface_t * rofi_icon_fetcher_get_surface_from_pixbuf ( GdkPixbuf cairo_surface_flush ( surface ); while ( pixels < pixels_end ) { line = pixels; - line_end = line + lo; - cline = cpixels; + const guchar *line_end = line + lo; + guchar *cline = cpixels; while ( line < line_end ) { if ( alpha ) { |