fix gcc warnings
parent
499c70cda0
commit
9e8f5f1348
4
st.c
4
st.c
|
@ -1104,7 +1104,7 @@ xdraws(char *s, Glyph base, int x, int y, int len) {
|
||||||
|
|
||||||
if(base.mode & ATTR_GFX)
|
if(base.mode & ATTR_GFX)
|
||||||
for(i = 0; i < len; i++)
|
for(i = 0; i < len; i++)
|
||||||
s[i] = gfx[s[i]];
|
s[i] = gfx[(int)s[i]];
|
||||||
|
|
||||||
XSetFont(xw.dis, dc.gc, base.mode & ATTR_BOLD ? dc.bfont->fid : dc.font->fid);
|
XSetFont(xw.dis, dc.gc, base.mode & ATTR_BOLD ? dc.bfont->fid : dc.font->fid);
|
||||||
XDrawImageString(xw.dis, xw.buf, dc.gc, winx, winy, s, len);
|
XDrawImageString(xw.dis, xw.buf, dc.gc, winx, winy, s, len);
|
||||||
|
@ -1225,7 +1225,7 @@ kpress(XEvent *ev) {
|
||||||
shift = e->state & ShiftMask;
|
shift = e->state & ShiftMask;
|
||||||
len = XLookupString(e, buf, sizeof(buf), &ksym, NULL);
|
len = XLookupString(e, buf, sizeof(buf), &ksym, NULL);
|
||||||
|
|
||||||
if(customkey = kmap(ksym))
|
if((customkey = kmap(ksym)))
|
||||||
ttywrite(customkey, strlen(customkey));
|
ttywrite(customkey, strlen(customkey));
|
||||||
else if(len > 0) {
|
else if(len > 0) {
|
||||||
buf[sizeof(buf)-1] = '\0';
|
buf[sizeof(buf)-1] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue