From 3951adcf25397084db1dec22ee5d5b493a8e057e Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 5 Dec 2013 16:14:02 +0100 Subject: [PATCH] Widen Xaw text entries for larger square sizes Presumably people will use larger fonts if they use larger board squares. (And in any case te default fonts would be larger.) This means they need more space to see what is the current value of text options. --- xaw/xoptions.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/xaw/xoptions.c b/xaw/xoptions.c index 6a193a0..5d00290 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -981,6 +981,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent } else texts[h] = dialog = NULL; // kludge to position from left margin w = option[i].type == Spin || option[i].type == Fractional ? 70 : option[i].max ? option[i].max : 205; if(option[i].type == FileName || option[i].type == PathName) w -= 55; + if(squareSize > 33) w += (squareSize - 33)/2; j = SetPositionAndSize(args, dialog, last, 1 /* border */, w /* w */, option[i].type == TextBox ? option[i].value : 0 /* h */, 0x91 /* chain full width */); if(option[i].type == TextBox) { // decorations for multi-line text-edits -- 1.7.0.4