mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:16:11 +00:00
- Don't mix device and logical coordinates in NtUserBeginPaint.
- Use BF_FLAT style for DrawEdge when drawing WS_EX_STATICEDGE border. svn path=/trunk/; revision=7807
This commit is contained in:
parent
cad98f04c0
commit
593f004966
2 changed files with 2 additions and 4 deletions
|
@ -305,7 +305,7 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn)
|
|||
} else
|
||||
if (ExStyle & WS_EX_STATICEDGE)
|
||||
{
|
||||
DrawEdge(hDC, &CurrentRect, BDR_SUNKENINNER, BF_RECT | BF_ADJUST);
|
||||
DrawEdge(hDC, &CurrentRect, BDR_SUNKENINNER, BF_RECT | BF_ADJUST | BF_FLAT);
|
||||
}
|
||||
|
||||
/* Firstly the "thick" frame */
|
||||
|
|
|
@ -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: painting.c,v 1.63 2004/01/18 08:29:31 navaraf Exp $
|
||||
* $Id: painting.c,v 1.64 2004/01/21 17:23:55 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -783,10 +783,8 @@ NtUserBeginPaint(HWND hWnd, PAINTSTRUCT* lPs)
|
|||
IntReleaseWindowObject(Window);
|
||||
return NULL;
|
||||
}
|
||||
IntLPtoDP(DC, (LPPOINT)&ClipRect, 2);
|
||||
DC_UnlockDc(lPs->hdc);
|
||||
NtGdiIntersectRect(&lPs->rcPaint, &ClientRect, &ClipRect);
|
||||
NtGdiDPtoLP(lPs->hdc, (LPPOINT)&lPs->rcPaint, 2);
|
||||
|
||||
if (Window->Flags & WINDOWOBJECT_NEED_ERASEBKGND)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue