From dd82fa06e3e626dc04d9f9d4144651778fb89c83 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sat, 13 Apr 2019 12:05:56 -0700 Subject: [PATCH] Mended tuxpaint.c indent Some commentary lines kept increasing indent every time `indent` was ran!? Wrapped in /* *INDENT-OFF* */ ... /* *INDENT-ON* */ to prevent this, and mended them. --- src/tuxpaint.c | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 1ddc269c9..a987b42b9 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -38,6 +38,8 @@ /* Color depth for Tux Paint to run in, and store canvases in: */ +/* *INDENT-OFF* */ + #if defined(NOKIA_770) #define VIDEO_BPP 16 #endif @@ -47,22 +49,19 @@ #endif #ifndef VIDEO_BPP - /*# define VIDEO_BPP 15 *//* saves memory */ - /*# define VIDEO_BPP 16 *//* causes discoloration */ - /*# define VIDEO_BPP 24 *//* compromise */ -#define VIDEO_BPP 32 /* might be fastest, if conversion funcs removed */ + /*# define VIDEO_BPP 15 *//* saves memory */ + /*# define VIDEO_BPP 16 *//* causes discoloration */ + /*# define VIDEO_BPP 24 *//* compromise */ + #define VIDEO_BPP 32 /* might be fastest, if conversion funcs removed */ #endif - - /* #define CORNER_SHAPES *//* need major work! */ - +/* #define CORNER_SHAPES *//* need major work! */ /* Method for printing images: */ #define PRINTMETHOD_PS /* Direct to PostScript */ - /*#define PRINTMETHOD_PNM_PS *//* Output PNM, assuming it gets printed */ - /*#define PRINTMETHOD_PNG_PNM_PS *//* Output PNG, assuming it gets printed */ - +/*#define PRINTMETHOD_PNM_PS *//* Output PNM, assuming it gets printed */ +/*#define PRINTMETHOD_PNG_PNM_PS *//* Output PNG, assuming it gets printed */ #define MAX_PATH 256 @@ -112,6 +111,8 @@ #define TPAINT_AMASK 0x000000ff #endif +/* *INDENT-ON* */ + static unsigned draw_colors(unsigned action); @@ -557,7 +558,9 @@ static void mtw(wchar_t * wtok, char *tok) int TP_EventFilter(const SDL_Event * event); - /* #define fmemopen_alternative *//* Uncomment this to test the fmemopen alternative in systems were fmemopen exists */ +/* *INDENT-OFF* */ +/* #define fmemopen_alternative *//* Uncomment this to test the fmemopen alternative in systems were fmemopen exists */ +/* *INDENT-ON* */ #if defined (WIN32) || defined (__APPLE__) || defined(__NetBSD__) || defined(__sun) /* MINGW/MSYS, NetBSD, and MacOSX need it, at least for now */ #define fmemopen_alternative @@ -685,7 +688,10 @@ typedef struct Uint8 rows, cols; } grid_dims; - /* static SDL_Rect r_screen; *//* was 640x480 @ 0,0 -- but this isn't so useful */ +/* *INDENT-OFF* */ +/* static SDL_Rect r_screen; *//* was 640x480 @ 0,0 -- but this isn't so useful */ +/* *INDENT-ON* */ + static SDL_Rect r_canvas; /* was 448x376 @ 96,0 */ static SDL_Rect r_tools; /* was 96x336 @ 0,40 */ static SDL_Rect r_sfx; @@ -710,7 +716,9 @@ static grid_dims gd_tools; /* was 2x7 */ static grid_dims gd_sfx; static grid_dims gd_toolopt; /* was 2x7 */ - /* static grid_dims gd_open; *//* was 4x4 */ +/* *INDENT-OFF* */ +/* static grid_dims gd_open; *//* was 4x4 */ +/* *INDENT-ON* */ static grid_dims gd_colors; /* was 17x1 */ #define HEIGHTOFFSET (((WINDOW_HEIGHT - 480) / 48) * 48)