1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-03-03 16:05:20 -05:00

Reduce scope of variables.

This commit is contained in:
Dave Davenport 2021-01-17 16:15:04 +01:00
parent 519b2a22eb
commit 75e361ecab

View file

@ -212,8 +212,8 @@ static cairo_surface_t * rofi_icon_fetcher_get_surface_from_pixbuf ( GdkPixbuf
gint cstride; gint cstride;
guint lo, o; guint lo, o;
guchar a = 0xff; guchar a = 0xff;
const guchar *pixels_end, *line, *line_end; const guchar *pixels_end, *line;
guchar *cpixels, *cline; guchar *cpixels;
pixels_end = pixels + height * stride; pixels_end = pixels + height * stride;
o = alpha ? 4 : 3; o = alpha ? 4 : 3;
@ -226,8 +226,8 @@ static cairo_surface_t * rofi_icon_fetcher_get_surface_from_pixbuf ( GdkPixbuf
cairo_surface_flush ( surface ); cairo_surface_flush ( surface );
while ( pixels < pixels_end ) { while ( pixels < pixels_end ) {
line = pixels; line = pixels;
line_end = line + lo; const guchar *line_end = line + lo;
cline = cpixels; guchar *cline = cpixels;
while ( line < line_end ) { while ( line < line_end ) {
if ( alpha ) { if ( alpha ) {