X11: restore support for non-square tiles when USE_XPM is defined
Gnome: add support for non-square tiles
tty: remove #define DEBUG that forced debug behavior in production builds
+X11: getlin dialog got steadily narrower each time it was used
General New Features
Arg args[4];
Widget response;
XFontStruct *font;
- Dimension width, nwidth, tmp, leftMargin, rightMargin;
+ Dimension width, nwidth, leftMargin, rightMargin;
response = XtNameToWidget(w, "response");
XtSetArg(args[0], XtNfont, &font);
XtSetArg(args[2], XtNrightMargin, &rightMargin);
XtSetArg(args[3], XtNwidth, &width);
XtGetValues(response, args, FOUR);
+ /* width includes margins as per Xaw documentation */
nwidth = (font->max_bounds.width * strlen(s))+leftMargin+rightMargin;
- tmp = width-(leftMargin+rightMargin);
- if (nwidth < tmp)
- nwidth = tmp;
+ if (nwidth < width)
+ nwidth = width;
XtSetArg(args[0], XtNstring, s);
XtSetArg(args[1], XtNwidth, nwidth);