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)
|
||||
{
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue