From e9967463517575cf0cb5eba65213d9ae686cfb11 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sat, 13 Apr 2019 12:08:04 -0700 Subject: [PATCH] Funky function call indent fix A word-wrapped line of code using an array to access a function was confusing `indent` (causing it to change back & forth everytime `indent` was invoked!) Cleaned it up and wrapped in /* *INDENT-OFF* */.../* *INDENT-ON* */ to prevent further confusion. --- src/tuxpaint.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index a987b42b9..abf25a7fc 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -13590,12 +13590,11 @@ static void do_png_embed_data(png_structp png_ptr) for (x = 0; x < current_node->save_width; x++) for (y = 0; y < current_node->save_height; y++) { - pix = - getpixels[current_node->label_node_surface->format->BytesPerPixel] (current_node-> - label_node_surface, x, y); + /* *INDENT-OFF* */ + pix = getpixels[current_node->label_node_surface->format->BytesPerPixel](current_node->label_node_surface, x, y); + /* *INDENT-ON* */ SDL_GetRGBA(pix, current_label_node->label_node_surface->format, &r, &g, &b, &a); fwrite(&a, alpha_size, 1, lfi); - } SDL_UnlockSurface(current_node->label_node_surface); fprintf(lfi, "\n\n");