summaryrefslogtreecommitdiff
path: root/libtk
diff options
context:
space:
mode:
Diffstat (limited to 'libtk')
-rw-r--r--libtk/buton.c4
-rw-r--r--libtk/label.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/libtk/buton.c b/libtk/buton.c
index 5cbd1d6e..80a33bab 100644
--- a/libtk/buton.c
+++ b/libtk/buton.c
@@ -362,9 +362,7 @@ tkdrawbutton(Tk *tk, Point orig)
ct = tkgc(e, fgnd);
p.y += (h - tkl->textheight) / 2;
- o = tkdrawstring(tk, i, addpt(u, p), tkl->text, tkl->ul, ct, tkl->justify);
- if(o != nil)
- return o;
+ tkdrawstring(tk, i, addpt(u, p), tkl->text, tkl->ul, ct, tkl->justify);
}
// if(tkhaskeyfocus(tk))
diff --git a/libtk/label.c b/libtk/label.c
index fe1ca2ff..9eef1336 100644
--- a/libtk/label.c
+++ b/libtk/label.c
@@ -321,9 +321,7 @@ tkdrawlabel(Tk *tk, Point orig)
ct = tkgc(e, fgnd);
p.y += (h - tkl->textheight) / 2;
- o = tkdrawstring(tk, i, addpt(u, p), tkl->text, tkl->ul, ct, tkl->justify);
- if(o != nil)
- return o;
+ tkdrawstring(tk, i, addpt(u, p), tkl->text, tkl->ul, ct, tkl->justify);
}
if(tkhaskeyfocus(tk))