diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-08-26 19:13:01 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-08-26 19:13:01 -0700 |
commit | df21f9e742f8222f54d4c0226ed12a1ddf9a5744 (patch) | |
tree | a415f19feefc4b741f1191a883e0736969988c8f | |
parent | 7825f39cb7d6e1cbfe7fe86efc23e19148253149 (diff) |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/xfd/-/merge_requests/6>
-rw-r--r-- | grid.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -334,8 +334,8 @@ GetPrevNextStates(Widget w, Bool *prevvalidp, Bool *nextvalidp, Bool *prev16validp, Bool *next16validp) { FontGridWidget fgw = (FontGridWidget) w; - long minn = (long) GridFirstChar (w); - long maxn = (long) GridLastChar (w); + long minn = GridFirstChar (w); + long maxn = GridLastChar (w); *prev16validp = (fgw->fontgrid.start_char - 0xf00 > minn); *prevvalidp = (fgw->fontgrid.start_char > minn); @@ -394,7 +394,7 @@ static XtConvertArgRec xftColorConvertArgs[] = { if (toVal->size < sizeof(type)) { \ toVal->size = sizeof(type); \ XtDisplayStringConversionWarning(dpy, \ - (char*) fromVal->addr, tstr); \ + fromVal->addr, tstr); \ return False; \ } \ *(type*)(toVal->addr) = (value); \ @@ -461,7 +461,7 @@ XmuCvtStringToXftColor(Display *dpy, screen = *((Screen **) args[0].addr); colormap = *((Colormap *) args[1].addr); - spec = (char *) fromVal->addr; + spec = fromVal->addr; if (strcasecmp (spec, XtDefaultForeground) == 0) { renderColor.red = 0; @@ -533,7 +533,7 @@ XmuCvtStringToXftFont(Display *dpy, } screen = *((Screen **) args[0].addr); - name = (char *) fromVal->addr; + name = fromVal->addr; font = NULL; if (name) @@ -542,7 +542,7 @@ XmuCvtStringToXftFont(Display *dpy, XScreenNumberOfScreen (screen), name); if (!font) - XtDisplayStringConversionWarning(dpy, (char *) fromVal->addr, XtRXftFont); + XtDisplayStringConversionWarning(dpy, fromVal->addr, XtRXftFont); } donestr (XftFont *, font, XtRXftFont); } |