From cb8c8854339f4c14f423766c340906c1a9c61d8e Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sat, 13 Apr 2019 12:13:28 -0700 Subject: [PATCH] Ran `indent` on `tp_magic_example.c` See https://sourceforge.net/p/tuxpaint/mailman/message/36077409/ from Oct. 2017 for more. --- magic/docs/.indent.pro | 1 + magic/docs/tp_magic_example.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 120000 magic/docs/.indent.pro diff --git a/magic/docs/.indent.pro b/magic/docs/.indent.pro new file mode 120000 index 000000000..bd43730f5 --- /dev/null +++ b/magic/docs/.indent.pro @@ -0,0 +1 @@ +../../src/.indent.pro \ No newline at end of file diff --git a/magic/docs/tp_magic_example.c b/magic/docs/tp_magic_example.c index 44bcacae4..096204794 100644 --- a/magic/docs/tp_magic_example.c +++ b/magic/docs/tp_magic_example.c @@ -303,8 +303,9 @@ void example_shutdown(magic_api * api) // Affect the canvas on click: -void example_click(magic_api * api, int which, int mode, - SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y, SDL_Rect * update_rect) +void +example_click(magic_api * api, int which, int mode, + SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y, SDL_Rect * update_rect) { // In our case, a single click (which is also the start of a drag!) // is identical to what dragging does, but just at one point, rather @@ -319,8 +320,9 @@ void example_click(magic_api * api, int which, int mode, // Affect the canvas on drag: -void example_drag(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * snapshot, int ox, int oy, int x, int y, SDL_Rect * update_rect) +void +example_drag(magic_api * api, int which, SDL_Surface * canvas, + SDL_Surface * snapshot, int ox, int oy, int x, int y, SDL_Rect * update_rect) { // Call Tux Paint's "line()" function. // @@ -380,8 +382,9 @@ void example_drag(magic_api * api, int which, SDL_Surface * canvas, // Affect the canvas on release: -void example_release(magic_api * api, int which, - SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y, SDL_Rect * update_rect) +void +example_release(magic_api * api, int which, + SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y, SDL_Rect * update_rect) { // Neither of our effects do anything special when the mouse is released // from a click or click-and-drag, so there's no code here...