Commit 87b359c4 authored by Alexandre Julliard's avatar Alexandre Julliard

comctl32/progress: Fix incorrect use of the ScreenToClient function.

parent 5434d069
...@@ -380,8 +380,7 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc) ...@@ -380,8 +380,7 @@ static LRESULT PROGRESS_Draw (PROGRESS_INFO *infoPtr, HDC hdc)
if (pdi.theme) if (pdi.theme)
{ {
GetWindowRect( infoPtr->Self, &pdi.bgRect ); GetWindowRect( infoPtr->Self, &pdi.bgRect );
ScreenToClient( infoPtr->Self, (POINT*)&pdi.bgRect ); MapWindowPoints( infoPtr->Self, 0, (POINT*)&pdi.bgRect, 2 );
ScreenToClient( infoPtr->Self, (POINT*)&pdi.bgRect.right );
} }
if (!barSmooth) if (!barSmooth)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment