Nikolay Sivov : user32: Fix right and bottom edge sizes.
Alexandre Julliard
julliard at winehq.org
Thu May 9 15:08:29 CDT 2013
Module: wine
Branch: master
Commit: 0325dc6186f17cb214e180ccf6b7350dfb9de8e6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0325dc6186f17cb214e180ccf6b7350dfb9de8e6
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed May 8 21:29:44 2013 +0400
user32: Fix right and bottom edge sizes.
---
dlls/user32/uitools.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index a21ab7b..4921299 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -539,7 +539,7 @@ static BOOL UITOOLS95_DrawRectEdge(HDC hdc, LPRECT rc,
if(uFlags & BF_BOTTOM)
{
MoveToEx(hdc, InnerRect.left, InnerRect.bottom-1, NULL);
- LineTo(hdc, InnerRect.right-1, InnerRect.bottom-1);
+ LineTo(hdc, InnerRect.right, InnerRect.bottom-1);
}
if(uFlags & BF_RIGHT)
{
@@ -563,12 +563,12 @@ static BOOL UITOOLS95_DrawRectEdge(HDC hdc, LPRECT rc,
if(uFlags & BF_BOTTOM)
{
MoveToEx(hdc, InnerRect.left+LBpenplus, InnerRect.bottom-2, NULL);
- LineTo(hdc, InnerRect.right-1-RBpenplus, InnerRect.bottom-2);
+ LineTo(hdc, InnerRect.right-RBpenplus, InnerRect.bottom-2);
}
if(uFlags & BF_RIGHT)
{
- MoveToEx(hdc, InnerRect.right-2, InnerRect.top+2-RBpenplus, NULL);
- LineTo(hdc, InnerRect.right-2, InnerRect.bottom-2+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) )
More information about the wine-cvs
mailing list