diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2020-06-19 20:27:03 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2020-06-19 20:27:03 -0400 |
commit | d2690bc70d707b7a3a49839787d20eabc138e391 (patch) | |
tree | 7380cef4de76a01ee10581744c721d4d6d77338a /src/cursor.c | |
parent | 248be9688c23f249f1ecf1860f6f4cb09e56fab2 (diff) |
use new warning-message functions in the remaining places where suitable,
since -q option can be used to silence those if wanted
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/cursor.c')
-rw-r--r-- | src/cursor.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/cursor.c b/src/cursor.c index 98a1256..84d3f0c 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -133,15 +133,13 @@ NewFontCursor(Cursor *cp, const char *str) i++) { if (strcmp(str, cursor_names[i].name) == 0) { if (cursor_names[i].cursor == None) - cursor_names[i].cursor = XCreateFontCursor(dpy, - cursor_names[i]. - shape); + cursor_names[i].cursor = + XCreateFontCursor(dpy, cursor_names[i].shape); *cp = cursor_names[i].cursor; return; } } - fprintf(stderr, "%s: unable to find font cursor \"%s\"\n", - ProgramName, str); + twmWarning("unable to find font cursor \"%s\"", str); } void @@ -164,9 +162,8 @@ NewBitmapCursor(Cursor *cp, char *source, char *mask) XGetGeometry(dpy, spm, &JunkRoot, &sx, &sy, &sw, &sh, &JunkBW, &JunkDepth); XGetGeometry(dpy, mpm, &JunkRoot, &mx, &my, &mw, &mh, &JunkBW, &JunkDepth); if (sw != mw || sh != mh) { - fprintf(stderr, - "%s: cursor bitmaps \"%s\" and \"%s\" not the same size\n", - ProgramName, source, mask); + twmWarning("cursor bitmaps \"%s\" and \"%s\" not the same size\n", + source, mask); return; } *cp = XCreatePixmapCursor(dpy, spm, mpm, &Scr->PointerForeground, |