From 93044651200982abc936d727c0447b911dfe36b8 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 24 Apr 2023 12:20:12 +0200 Subject: reformat --- swt.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'swt.c') diff --git a/swt.c b/swt.c index 9c26650..a48509f 100644 --- a/swt.c +++ b/swt.c @@ -333,7 +333,8 @@ wdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) { } -void wdrawline(Line line, int x1, int y1, int x2) { +void +wdrawline(Line line, int x1, int y1, int x2) { int x; for (x = x1; x < x2; x++) { @@ -342,7 +343,8 @@ void wdrawline(Line line, int x1, int y1, int x2) { } -void wfinishdraw() { +void +wfinishdraw() { commit_surface(); } @@ -353,7 +355,8 @@ sixd_to_8bit(int x) } -void wloadcols() { +void +wloadcols() { int i; int c; @@ -375,13 +378,15 @@ void wloadcols() { } -int wsetcolorname(int, const char *) { +int +wsetcolorname(int, const char *) { fprintf(stderr, "SET COLOR NAME\n"); return 1; } -int wgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b) { +int +wgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b) { if (!BETWEEN(x, 0, sizeof(colors) / sizeof(uint32_t))) return 1; @@ -393,12 +398,14 @@ int wgetcolor(int x, unsigned char *r, unsigned char *g, unsigned char *b) { } -void wseticontitle(char *title) { +void +wseticontitle(char *title) { wsettitle(title); } -void wsettitle(char *title) { +void +wsettitle(char *title) { xdg_toplevel_set_title(win.surface.toplevel, title); } -- cgit v1.2.3-70-g09d2