From 362196445e1cb96f6fea08aba6b2338a18a2b896 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 14 May 2000 23:43:29 +0000 Subject: [PATCH] Fixed borders of windows while dragging or sizing to match TWEAK_WineLook setting. --- windows/nonclient.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/windows/nonclient.c b/windows/nonclient.c index 7db76d00bc7..c5308179c5b 100644 --- a/windows/nonclient.c +++ b/windows/nonclient.c @@ -2204,7 +2204,9 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam ) if( !hDragCursor ) iconic = FALSE; } - if( !iconic ) NC_DrawMovingFrame( hdc, &sizingRect, thickframe ); + /* invert frame if WIN31_LOOK to indicate mouse click on caption */ + if( !iconic && TWEAK_WineLook == WIN31_LOOK ) + NC_DrawMovingFrame( hdc, &sizingRect, thickframe ); while(1) { @@ -2244,12 +2246,16 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam ) if( !moved ) { moved = TRUE; - if( iconic ) /* ok, no system popup tracking */ + + if( iconic ) /* ok, no system popup tracking */ { hOldCursor = SetCursor(hDragCursor); ShowCursor( TRUE ); WINPOS_ShowIconTitle( wndPtr, FALSE ); - } + } else if(TWEAK_WineLook != WIN31_LOOK) + { + NC_DrawMovingFrame( hdc, &sizingRect, thickframe ); + } } if (msg.message == WM_KEYDOWN) SetCursorPos( pt.x, pt.y ); @@ -2287,15 +2293,13 @@ static void NC_DoSizeMove( HWND hwnd, WORD wParam ) } DestroyCursor( hDragCursor ); } - else - NC_DrawMovingFrame( hdc, &sizingRect, thickframe ); + else if(moved || TWEAK_WineLook == WIN31_LOOK) + NC_DrawMovingFrame( hdc, &sizingRect, thickframe ); if (wndPtr->dwStyle & WS_CHILD) ReleaseDC( wndPtr->parent->hwndSelf, hdc ); else - { - ReleaseDC( 0, hdc ); - } + ReleaseDC( 0, hdc ); wndPtr->pDriver->pPostSizeMove(wndPtr);