aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drw.c b/drw.c
index a50c9ee..2f3a5df 100644
--- a/drw.c
+++ b/drw.c
@@ -267,7 +267,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
267 enum { nomatches_len = 64 }; 267 enum { nomatches_len = 64 };
268 static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; 268 static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches;
269 269
270 if (!drw || (render && !drw->scheme) || !text || !drw->fonts) 270 if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts)
271 return 0; 271 return 0;
272 272
273 if (!render) { 273 if (!render) {