Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xdm/dist/greeter Position input fields withou...



details:   https://anonhg.NetBSD.org/xsrc/rev/d54c86f7e5d9
branches:  trunk
changeset: 6979:d54c86f7e5d9
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Tue May 24 22:47:52 2022 +0000

description:
Position input fields without overlap.

diffstat:

 external/mit/xdm/dist/greeter/Login.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 825cfcca45b8 -r d54c86f7e5d9 external/mit/xdm/dist/greeter/Login.c
--- a/external/mit/xdm/dist/greeter/Login.c     Wed May 11 22:46:51 2022 +0000
+++ b/external/mit/xdm/dist/greeter/Login.c     Tue May 24 22:47:52 2022 +0000
@@ -328,7 +328,7 @@
 #define SEP_H(w)       ((w)->login.inframeswidth * 2)
 
 #define PROMPT_X(w)    (2 * PROMPT_X_INC(w))
-#define PROMPT_Y(w,n)  ((SEP_Y(w) + ((n)+1) * GREET_Y_INC(w) + 2 * (w)->login.inframeswidth))
+#define PROMPT_Y(w,n)  (SEP_Y(w) + GREET_Y_INC(w) + (n) * Y_INC(w) + (2*(n)+1) * ((w)->login.inframeswidth + VALUE_VPAD(w,n)))
 #define PROMPT_W(w)    (w->core.width - PROMPT_X(w) - 2 * TEXT_X_INC(w) - LOGO_W(w))
 #define PROMPT_H(w)    Y_INC(w)
 



Home | Main Index | Thread Index | Old Index