aboutsummaryrefslogtreecommitdiff
path: root/swt.c
diff options
context:
space:
mode:
Diffstat (limited to 'swt.c')
-rw-r--r--swt.c21
1 files changed, 14 insertions, 7 deletions
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);
}