Nikolay Sivov : user32/combo: Remove redundant argument from border painting helper.
Alexandre Julliard
julliard at winehq.org
Wed Nov 27 16:32:29 CST 2019
Module: wine
Branch: master
Commit: 722f4fc084a1c72cf9a04051e20145c0b4d43d43
URL: https://source.winehq.org/git/wine.git/?a=commit;h=722f4fc084a1c72cf9a04051e20145c0b4d43d43
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Nov 27 11:31:03 2019 +0300
user32/combo: Remove redundant argument from border painting helper.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/combo.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c
index 52d2f7190d..631bad0aa9 100644
--- a/dlls/user32/combo.c
+++ b/dlls/user32/combo.c
@@ -766,16 +766,13 @@ static void CBPaintText(
/***********************************************************************
* CBPaintBorder
*/
-static void CBPaintBorder(
- HWND hwnd,
- const HEADCOMBO *lphc,
- HDC hdc)
+static void CBPaintBorder(const HEADCOMBO *lphc, HDC hdc)
{
RECT clientRect;
if (CB_GETTYPE(lphc) != CBS_SIMPLE)
{
- GetClientRect(hwnd, &clientRect);
+ GetClientRect(lphc->self, &clientRect);
}
else
{
@@ -818,7 +815,7 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
/*
* In non 3.1 look, there is a sunken border on the combobox
*/
- CBPaintBorder(lphc->self, lphc, hDC);
+ CBPaintBorder(lphc, hDC);
CBPaintButton(lphc, hDC);
/* paint the edit control padding area */
More information about the wine-cvs
mailing list