Index: MUSHclient.rc =================================================================== RCS file: /cvs/mushclient/MUSHclient.rc,v retrieving revision 1.206 diff -c -r1.206 MUSHclient.rc *** MUSHclient.rc 25 Jul 2007 05:02:19 -0000 1.206 --- MUSHclient.rc 26 Jul 2007 00:43:23 -0000 *************** *** 56,63 **** // VS_VERSION_INFO VERSIONINFO ! FILEVERSION 4,0,15,0 ! PRODUCTVERSION 4,0,15,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L --- 56,63 ---- // VS_VERSION_INFO VERSIONINFO ! FILEVERSION 4,0,16,0 ! PRODUCTVERSION 4,0,16,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L *************** *** 75,88 **** VALUE "Comments", "MUSHclient - a client program for playing MUD games\0" VALUE "CompanyName", "Gammon Software Solutions\0" VALUE "FileDescription", "MUSHclient\0" ! VALUE "FileVersion", "4.15\0" VALUE "InternalName", "MUSHCLIENT\0" VALUE "LegalCopyright", "Copyright © 2007 Gammon Software Solutions\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "MUSHCLIENT.EXE\0" VALUE "PrivateBuild", "\0" VALUE "ProductName", "MUSHclient\0" ! VALUE "ProductVersion", "4.15\0" VALUE "SpecialBuild", "\0" END END --- 75,88 ---- VALUE "Comments", "MUSHclient - a client program for playing MUD games\0" VALUE "CompanyName", "Gammon Software Solutions\0" VALUE "FileDescription", "MUSHclient\0" ! VALUE "FileVersion", "4.16\0" VALUE "InternalName", "MUSHCLIENT\0" VALUE "LegalCopyright", "Copyright © 2007 Gammon Software Solutions\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "MUSHCLIENT.EXE\0" VALUE "PrivateBuild", "\0" VALUE "ProductName", "MUSHclient\0" ! VALUE "ProductVersion", "4.16\0" VALUE "SpecialBuild", "\0" END END Index: MySplitterWnd.cpp =================================================================== RCS file: /cvs/mushclient/MySplitterWnd.cpp,v retrieving revision 1.5 diff -c -r1.5 MySplitterWnd.cpp *** MySplitterWnd.cpp 12 Apr 2002 05:01:10 -0000 1.5 --- MySplitterWnd.cpp 26 Jul 2007 00:43:23 -0000 *************** *** 50,55 **** --- 50,81 ---- int cyCur, cyMin; GetRowInfo (1, cyCur, cyMin); + + // snap to boundary stuff (version 4.16) + if (((GetKeyState (VK_LCONTROL) & 0x8000) != 0 || + (GetKeyState (VK_RCONTROL) & 0x8000) != 0) && m_pDoc->m_input_font) + { + CDC dc; + + dc.CreateCompatibleDC (NULL); + dc.SelectObject (m_pDoc->m_input_font); + + TEXTMETRIC tm; + dc.GetTextMetrics(&tm); + + // need to know height of entire font (eg. 12 point FixedSys is 15) + int m_iLineHeight = tm.tmHeight; + + const int iFudge = 4; // trial and error stuff, if anyone has a better idea let me know + + double fLines = (cyCur - iFudge) / m_iLineHeight; + int iLines = floor (fLines + 0.5); // round to nearest number of lines + if (iLines) + cyCur = m_iLineHeight * iLines + iFudge; // calculate desired height for those lines + else + cyCur = 0; // zero lines is still zero + } // end of ctrl key held down + if (!(m_pDoc->m_mush_name.IsEmpty ())) App.WriteProfileInt(m_pDoc->m_mush_name, "Bottom Height", cyCur); // TRACE1 ("Bottom height (saved) = %i\n", cyCur); Index: doc.h =================================================================== RCS file: /cvs/mushclient/doc.h,v retrieving revision 1.224 diff -c -r1.224 doc.h *** doc.h 25 Jul 2007 05:02:19 -0000 1.224 --- doc.h 26 Jul 2007 00:43:23 -0000 *************** *** 21,28 **** // New versions - things to change ! #define THISVERSION 415 // Step 1. ! const CString MUSHCLIENT_VERSION = "4.15"; // Step 2. // Step 3. Don't forget VERSION resource in Resources tab // Step 4. Remember: README.TXT --- 21,28 ---- // New versions - things to change ! #define THISVERSION 416 // Step 1. ! const CString MUSHCLIENT_VERSION = "4.16"; // Step 2. // Step 3. Don't forget VERSION resource in Resources tab // Step 4. Remember: README.TXT Index: mushclient.hlp =================================================================== RCS file: /cvs/mushclient/mushclient.hlp,v retrieving revision 1.84 diff -c -r1.84 mushclient.hlp Binary files /tmp/cvsDm2oA4 and mushclient.hlp differ Index: install/readme.txt =================================================================== RCS file: /cvs/mushclient/install/readme.txt,v retrieving revision 1.153 diff -c -r1.153 readme.txt *** install/readme.txt 25 Jul 2007 05:02:27 -0000 1.153 --- install/readme.txt 26 Jul 2007 00:43:24 -0000 *************** *** 1,7 **** ! MUSHclient version 4.15 ======================= ! Wednesday, 25th July 2007 Author: Nick Gammon Web support: http://www.gammon.com.au/forum/ --- 1,7 ---- ! MUSHclient version 4.16 ======================= ! Thursday, 26th July 2007 Author: Nick Gammon Web support: http://www.gammon.com.au/forum/