Module: wine Branch: master Commit: 87b359c48a9966f4125bba9dbb7124e6c969f962 URL: http://source.winehq.org/git/wine.git/?a=commit;h=87b359c48a9966f4125bba9dbb...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Oct 5 14:03:54 2010 +0200
comctl32/progress: Fix incorrect use of the ScreenToClient function.
---
dlls/comctl32/progress.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c index c44b816..5f2f166 100644 --- a/dlls/comctl32/progress.c +++ b/dlls/comctl32/progress.c @@ -380,8 +380,7 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc) if (pdi.theme) { GetWindowRect( infoPtr->Self, &pdi.bgRect ); - ScreenToClient( infoPtr->Self, (POINT*)&pdi.bgRect ); - ScreenToClient( infoPtr->Self, (POINT*)&pdi.bgRect.right ); + MapWindowPoints( infoPtr->Self, 0, (POINT*)&pdi.bgRect, 2 ); }
if (!barSmooth)