aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/paint
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/paint
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/paint')
-rw-r--r--src/cmd/paint/eenter.c1
-rw-r--r--src/cmd/paint/paint.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/paint/eenter.c b/src/cmd/paint/eenter.c
index 6645820c..6c84f2fb 100644
--- a/src/cmd/paint/eenter.c
+++ b/src/cmd/paint/eenter.c
@@ -255,4 +255,3 @@ nodraw:
return n;
}
-
diff --git a/src/cmd/paint/paint.c b/src/cmd/paint/paint.c
index 7dce3710..e7f502cf 100644
--- a/src/cmd/paint/paint.c
+++ b/src/cmd/paint/paint.c
@@ -97,7 +97,7 @@ strokedraw(Image *dst, Rectangle r, Image *ink, int brush)
* mp and sp get aligned with bot.min.
*/
static void
-gendrawdiff(Image *dst, Rectangle bot, Rectangle top,
+gendrawdiff(Image *dst, Rectangle bot, Rectangle top,
Image *src, Point sp, Image *mask, Point mp, int op)
{
Rectangle r;
@@ -482,7 +482,7 @@ center(void)
{
cpos = ZP;
if(canvas)
- cpos = addpt(canvas->r.min,
+ cpos = addpt(canvas->r.min,
divpt(subpt(canvas->r.max, canvas->r.min), 2));
spos = addpt(screen->r.min,
divpt(subpt(screen->r.max, screen->r.min), 2));
@@ -633,7 +633,7 @@ main(int argc, char *argv[])
if(argc == 1)
filename = strdup(argv[0]);
else if(argc != 0)
- usage();
+ usage();
if(initdraw(0, 0, "paint") < 0)
sysfatal("initdraw: %r");