mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +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
|
} else
|
||||||
if (ExStyle & WS_EX_STATICEDGE)
|
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 */
|
/* Firstly the "thick" frame */
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -783,10 +783,8 @@ NtUserBeginPaint(HWND hWnd, PAINTSTRUCT* lPs)
|
||||||
IntReleaseWindowObject(Window);
|
IntReleaseWindowObject(Window);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
IntLPtoDP(DC, (LPPOINT)&ClipRect, 2);
|
|
||||||
DC_UnlockDc(lPs->hdc);
|
DC_UnlockDc(lPs->hdc);
|
||||||
NtGdiIntersectRect(&lPs->rcPaint, &ClientRect, &ClipRect);
|
NtGdiIntersectRect(&lPs->rcPaint, &ClientRect, &ClipRect);
|
||||||
NtGdiDPtoLP(lPs->hdc, (LPPOINT)&lPs->rcPaint, 2);
|
|
||||||
|
|
||||||
if (Window->Flags & WINDOWOBJECT_NEED_ERASEBKGND)
|
if (Window->Flags & WINDOWOBJECT_NEED_ERASEBKGND)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue