summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 01:26:44 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 01:31:18 (GMT)
commit2a64264e445dd46121c1e966bbe1d2b44b29d33f (patch)
tree76dd5225c653bdb983a1c7b7a241fff5570086c7 /gfx
parentdafe079f9bd26ee63e685db638d578236abd6eb3 (diff)
downloadeeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.zip
eeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.tar.gz
eeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.tar.bz2
fix numerous whitespace atrocities
- trailing spaces - trailing tabs - space before tab - more than four spaces ... - at the beginning of a line - after tab - in general (okay in many cases, but not all) - caught a stray blank line as well
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c2
-rw-r--r--gfx/diff.c6
-rw-r--r--gfx/diff.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 6c50ab7..50b0d5f 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -286,7 +286,7 @@ static void overlined(cairo_t *cr, const char *s, double h)
overline(cr, ox, oy, g[-1].x + ext.x_advance,
g[-1].y + ext.y_advance, h);
}
-
+
cairo_glyph_free(glyphs);
}
diff --git a/gfx/diff.c b/gfx/diff.c
index 096c252..6aef353 100644
--- a/gfx/diff.c
+++ b/gfx/diff.c
@@ -175,9 +175,9 @@ void *diff_process_file(struct diff *diff, struct file_names *file_names,
free_file_names(file_names);
return NULL;
}
- }
+ }
- if (!file_open(&sch_file, fn->sch, file_names->pro ? &pro_file : NULL))
+ if (!file_open(&sch_file, fn->sch, file_names->pro ? &pro_file : NULL))
goto fail_open;
for (i = 0 ; i != fn->n_libs; i++)
if (!lib_parse_search(&lib, fn->libs[i], fn, &sch_file))
@@ -467,7 +467,7 @@ static int diff_end(void *ctx)
cro_img_reset(gfx_user(diff->new_gfx));
cro_img_reset(gfx_user(diff->gfx));
-
+
old_cr = make_diff(NULL, 0, 0, diff->scale,
gfx_user(diff->gfx), NULL, gfx_user(diff->new_gfx), NULL, NULL,
&changed);
diff --git a/gfx/diff.h b/gfx/diff.h
index 90eb66d..d1fbc18 100644
--- a/gfx/diff.h
+++ b/gfx/diff.h
@@ -39,7 +39,7 @@ void add_area(struct area **areas, int xa, int ya, int xb, int yb,
uint32_t color);
void free_areas(struct area **areas);
-void diff_to_canvas(cairo_t *cr, int cx, int cy, float scale,
+void diff_to_canvas(cairo_t *cr, int cx, int cy, float scale,
struct cro_ctx *old, struct cro_ctx *old_extra,
struct cro_ctx *new, struct cro_ctx *new_extra,
const struct area *areas);