[PATCH] fix caption bar being drawn 1 pixel too high

Peter Oberndorfer kumbayo84 at arcor.de
Sun Feb 17 14:14:50 CST 2008


---
This 1 pixel would cover up the gray line between caption bar and client area.
The problem was introduced in commit 567b6facab5623857b399c80c96db97d3344c8ac
Add support for drawing gradient captions.
It changed the code to use the rect param instead of &r.
But a few lines above the bottom of the RECT r is adjusted.
In the DrawCaptionTempW code path the change is not strictly needed, as the
RECT rc is not modified before calling NC_DrawCaptionBar.
But i still changed it since all other parts of the function use rc.

 dlls/user32/nonclient.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5df97f1d572288b268b1ed5fb3e62e6e7d6b43fa.diff
Type: text/x-patch
Size: 942 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080217/69b86a18/attachment.bin 


More information about the wine-patches mailing list