SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
__needSetAccessibility = true;
- RedrawItem(index);
+ RedrawItem(index, __highlightedIndex == index);
+
return r;
}
}
__highlightedIndex = lastItemIndex;
}
- if (!__firstDrawnItemFullyDrawn && (focusUiIndex >= __firstDrawnIndex && focusUiIndex <= __firstDrawnIndex + GetItemCountPerAxis() - 1))
+ if (!__firstDrawnItemFullyDrawn && (__highlightedIndex >= __firstDrawnIndex && __highlightedIndex <= __firstDrawnIndex + GetItemCountPerAxis() - 1))
{
- ScrollToItem(focusUiIndex);
+ ScrollToItem(__highlightedIndex);
__pIconListView->Draw();
}
- else if (!__lastDrawnItemFullyDrawn && (__lastDrawnIndex - focusUiIndex <= GetItemCountPerAxis() - 1))
+ else if (!__lastDrawnItemFullyDrawn && (__lastDrawnIndex - __highlightedIndex <= GetItemCountPerAxis() - 1))
{
- ScrollToItem(focusUiIndex);
+ ScrollToItem(__highlightedIndex);
__pIconListView->Draw();
}
- if (focusUiIndex < __firstDrawnIndex || focusUiIndex > __lastDrawnIndex)
+ if (__highlightedIndex < __firstDrawnIndex || __highlightedIndex > __lastDrawnIndex)
{
- ScrollToItem(focusUiIndex);
+ ScrollToItem(__highlightedIndex);
__pIconListView->Draw();
}