From: Andrew C. <ac...@us...> - 2003-04-23 01:23:58
|
Update of /cvsroot/planeshift/planeshift/src/client/paws In directory sc8-pr-cvs1:/tmp/cvs-serv14854/src/client/paws Modified Files: pawstextbox.cpp Log Message: Chat text placement better Index: pawstextbox.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/pawstextbox.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pawstextbox.cpp 22 Apr 2003 00:55:27 -0000 1.1 --- pawstextbox.cpp 23 Apr 2003 01:23:54 -0000 1.2 *************** *** 203,207 **** //csString message("This is a very long message that will most likely not fit inside the width of the chat window so it will have to be broken up into pieces to fit."); - pawsWidget::Draw(); --- 203,206 ---- *************** *** 223,231 **** bool messageComplete = false; ! int offSet = 0; int lines = startLine; int max = 0; if ( border ) max = 8; while ( !messageComplete ) --- 222,234 ---- bool messageComplete = false; ! int lines = startLine; + + // Check for border int max = 0; if ( border ) max = 8; + + int offSet = max / 2; while ( !messageComplete ) |