diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-24 12:20:12 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-24 12:20:12 +0200 |
| commit | 93044651200982abc936d727c0447b911dfe36b8 (patch) | |
| tree | 3f61f837b68453c93dd976f5cb004231c54a8242 /swt.c | |
| parent | feb5adefd9d4909aa30d3a49e173a8954b755de2 (diff) | |
reformat
Diffstat (limited to 'swt.c')
| -rw-r--r-- | swt.c | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -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); } |