From 1544629b43ecbd8604cb05750e25415b4378c33f Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Tue, 25 Oct 2005 03:41:16 +0000 Subject: [PATCH] Pick string windows will be resized to title length also --- docs/notework.txt | 2 ++ goldlib/gall/gwinpcks.cpp | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/notework.txt b/docs/notework.txt index 78867ac..ad6a7a3 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -10,6 +10,8 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- Pick string windows will be resized to title length also. + + Added @daddr to built-in template for netmail areas. + Second char from first name will act as lastname in initials diff --git a/goldlib/gall/gwinpcks.cpp b/goldlib/gall/gwinpcks.cpp index 501aa03..a96fd61 100644 --- a/goldlib/gall/gwinpcks.cpp +++ b/goldlib/gall/gwinpcks.cpp @@ -35,6 +35,8 @@ #include #include +extern char m_title[]; + // ------------------------------------------------------------------ @@ -414,8 +416,10 @@ int wpickstr(int srow, int scol, int erow, int ecol, int btype, int bordattr, in // go through input array and determine the longest // string, and count the number of elements in the array - for(i=maxlen=0; strarr[i]!=NULL; i++) - if((j=strlen(strarr[i]))>maxlen) + maxlen = strlen(m_title); + + for (i = 0; strarr[i] != NULL; i++) + if ((j = strlen(strarr[i])) > maxlen) maxlen = j; r.maxstrlen = maxlen;