Module Name:    xsrc
Committed By:   mlelstv
Date:           Tue May 24 22:47:53 UTC 2022

Modified Files:
        xsrc/external/mit/xdm/dist/greeter: Login.c

Log Message:
Position input fields without overlap.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 xsrc/external/mit/xdm/dist/greeter/Login.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xdm/dist/greeter/Login.c
diff -u xsrc/external/mit/xdm/dist/greeter/Login.c:1.6 xsrc/external/mit/xdm/dist/greeter/Login.c:1.7
--- xsrc/external/mit/xdm/dist/greeter/Login.c:1.6	Fri Jun  7 05:49:37 2019
+++ xsrc/external/mit/xdm/dist/greeter/Login.c	Tue May 24 22:47:52 2022
@@ -328,7 +328,7 @@ XmuXftTextWidth(Display *dpy, XftFont *f
 #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)
 

Reply via email to