mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fixed UITOOLS95_DrawRectEdge to match repairs made to the vga driver. buttons and framed windows now look correct (again).
svn path=/trunk/; revision=5584
This commit is contained in:
parent
59c7cc4bc9
commit
898e3104f1
1 changed files with 9 additions and 9 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: draw.c,v 1.18 2003/08/15 02:51:53 silverblade Exp $
|
||||
/* $Id: draw.c,v 1.19 2003/08/15 13:44:30 royce Exp $
|
||||
*
|
||||
* PROJECT: ReactOS user32.dll
|
||||
* FILE: lib/user32/windows/input.c
|
||||
|
@ -522,13 +522,13 @@ static BOOL UITOOLS95_DrawRectEdge(HDC hdc, LPRECT rc,
|
|||
SelectObject(hdc, RBOuterPen);
|
||||
if(uFlags & BF_BOTTOM)
|
||||
{
|
||||
MoveToEx(hdc, InnerRect.right, InnerRect.bottom-1, NULL);
|
||||
LineTo(hdc, InnerRect.left, InnerRect.bottom-1);
|
||||
MoveToEx(hdc, InnerRect.left, InnerRect.bottom-1, NULL);
|
||||
LineTo(hdc, InnerRect.right, InnerRect.bottom-1);
|
||||
}
|
||||
if(uFlags & BF_RIGHT)
|
||||
{
|
||||
MoveToEx(hdc, InnerRect.right-1, InnerRect.bottom, NULL);
|
||||
LineTo(hdc, InnerRect.right-1, InnerRect.top);
|
||||
MoveToEx(hdc, InnerRect.right-1, InnerRect.top, NULL);
|
||||
LineTo(hdc, InnerRect.right-1, InnerRect.bottom);
|
||||
}
|
||||
|
||||
/* Draw the inner edge */
|
||||
|
@ -546,13 +546,13 @@ static BOOL UITOOLS95_DrawRectEdge(HDC hdc, LPRECT rc,
|
|||
SelectObject(hdc, RBInnerPen);
|
||||
if(uFlags & BF_BOTTOM)
|
||||
{
|
||||
MoveToEx(hdc, InnerRect.right-RBpenplus, InnerRect.bottom-2, NULL);
|
||||
LineTo(hdc, InnerRect.left+LBpenplus, InnerRect.bottom-2);
|
||||
MoveToEx(hdc, InnerRect.left+LBpenplus, InnerRect.bottom-2, NULL);
|
||||
LineTo(hdc, InnerRect.right-RBpenplus, InnerRect.bottom-2);
|
||||
}
|
||||
if(uFlags & BF_RIGHT)
|
||||
{
|
||||
MoveToEx(hdc, InnerRect.right-2, InnerRect.bottom-RBpenplus, NULL);
|
||||
LineTo(hdc, InnerRect.right-2, InnerRect.top+RTpenplus);
|
||||
MoveToEx(hdc, InnerRect.right-2, InnerRect.top+RTpenplus, NULL);
|
||||
LineTo(hdc, InnerRect.right-2, InnerRect.bottom-RBpenplus);
|
||||
}
|
||||
|
||||
if( ((uFlags & BF_MIDDLE) && retval) || (uFlags & BF_ADJUST) )
|
||||
|
|
Loading…
Reference in a new issue