comctl32/progress: Fix incorrect use of the ScreenToClient function.
This commit is contained in:
parent
5434d069ea
commit
87b359c48a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue