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

oldstable
Alexandre Julliard 2010-10-05 14:03:54 +02:00
parent 5434d069ea
commit 87b359c48a
1 changed files with 1 additions and 2 deletions

View File

@ -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)