Piotr Caban : user32: Remove unneeded RECT parameter from CBPaintText helper.
Alexandre Julliard
julliard at winehq.org
Fri Oct 6 14:58:53 CDT 2017
Module: wine
Branch: master
Commit: e5dd995708a6a2bf42d928597c4076dc1aa48bbf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5dd995708a6a2bf42d928597c4076dc1aa48bbf
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Oct 4 12:38:04 2017 +0200
user32: Remove unneeded RECT parameter from CBPaintText helper.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/combo.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index f35e0d9..4b6bc4f 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -652,9 +652,9 @@ static void CBPaintButton( LPHEADCOMBO lphc, HDC hdc, RECT rectButton)
*/
static void CBPaintText(
LPHEADCOMBO lphc,
- HDC hdc,
- RECT rectEdit)
+ HDC hdc)
{
+ RECT rectEdit = lphc->textRect;
INT id, size = 0;
LPWSTR pText = NULL;
@@ -880,7 +880,7 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
}
if( !(lphc->wState & CBF_EDIT) )
- CBPaintText( lphc, hDC, lphc->textRect);
+ CBPaintText( lphc, hDC );
if( hPrevBrush )
SelectObject( hDC, hPrevBrush );
More information about the wine-cvs
mailing list