[UXTHEME] -Fix drawing the themed scrollbar. CORE-12933

svn path=/trunk/; revision=74234
This commit is contained in:
Giannis Adamopoulos
2017-03-27 19:56:36 +00:00
parent 81d33af127
commit 73696326a3
+4
View File
@@ -182,14 +182,18 @@ static void SCROLL_DrawInterior( PDRAW_CONTEXT pcontext, SCROLLBARINFO* psbi,
{
RECT r, rcPart;
/* thumbPos is relative to the edge of the scrollbar */
r = psbi->rcScrollBar;
if (vertical)
{
thumbPos += pcontext->wi.rcClient.top - pcontext->wi.rcWindow.top;
r.top += psbi->dxyLineButton;
r.bottom -= (psbi->dxyLineButton);
}
else
{
thumbPos += pcontext->wi.rcClient.left - pcontext->wi.rcWindow.left;
r.left += psbi->dxyLineButton;
r.right -= psbi->dxyLineButton;
}