Update of /cvsroot/netrek/client/netrekxp/src In directory sc8-pr-cvs16:/tmp/cvs-serv7251/src Modified Files: local.c mswindow.c Log Message: Added ability to resize richtext windows via click/double click to activate/deactivate the sizing border. Fixed bug with observers drawing the ship they are locked onto if it's cloaked and showCloak feature is enabled. Cleaned up todo list. Index: mswindow.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/mswindow.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -d -r1.64 -r1.65 --- mswindow.c 10 Apr 2007 08:14:16 -0000 1.64 +++ mswindow.c 10 Apr 2007 11:07:08 -0000 1.65 @@ -6089,6 +6089,16 @@ // fake a caption hit to move window SendMessage(hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0); break; + case WM_NCLBUTTONDOWN: + // set sizing border + SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) | WS_SIZEBOX); + break; + case WM_LBUTTONUP: + case WM_NCLBUTTONUP: + SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) & ~WS_SIZEBOX); + // remove sizing border and redraw + SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); + break; } return CallWindowProc (lpfnDefRichEditWndProc, hwnd, msg, wParam, lParam); } Index: local.c =================================================================== RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -d -r1.91 -r1.92 --- local.c 10 Apr 2007 05:43:44 -0000 1.91 +++ local.c 10 Apr 2007 11:07:08 -0000 1.92 @@ -836,7 +836,7 @@ the ship drawing code with the goto statement */ if (j->p_flags & PFCLOAK && (j->p_cloakphase == (cloak_phases - 1))) { - if (myPlayer (j) || (showCloakers && F_show_cloakers) + if (myPlayer (j) || (showCloakers && F_show_cloakers && !isObsLockPlayer(j)) #ifdef RECORDGAME || playback #endif