diff --git a/ChangeLog b/ChangeLog index 4f85fd495..24c084a28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-12-07 Holger Vogt + * windisp.c: allow aeeting of linewidth by keyboard entry + 2009-12-05: Dietmar Warning * inpcom.c, line 3090: allow parameter without curly braces in subckt definition (e.g.: as1=as), there was a wrong memory access before diff --git a/src/frontend/wdisp/windisp.c b/src/frontend/wdisp/windisp.c index cf1fa3257..01da75ed3 100644 --- a/src/frontend/wdisp/windisp.c +++ b/src/frontend/wdisp/windisp.c @@ -120,15 +120,20 @@ int WIN_Init( ) if (cieq(colorstring, "white")) isblack = FALSE; else isblack = TRUE; } + /* get linewidth information from spinit */ + if (!cp_getvar("xbrushwidth", VT_NUM, &linewidth)) + linewidth = 0; + if (linewidth < 0) linewidth = 0; + /* only for the first time: */ if (!IsRegistered) { isblackold = isblack; - /* get linewidth information from spinit */ + /* get linewidth information from spinit if (!cp_getvar("xbrushwidth", VT_NUM, &linewidth)) linewidth = 0; - if (linewidth < 0) linewidth = 0; + if (linewidth < 0) linewidth = 0; */ /* Initialize colors */ if (isblack) {