drastically reduced flicker in RefreshItems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3ca2209e61
commit
d0debf520a
@ -1928,10 +1928,14 @@ void wxListCtrl::RefreshItem(long item)
|
||||
|
||||
void wxListCtrl::RefreshItems(long itemFrom, long itemTo)
|
||||
{
|
||||
for ( long item = itemFrom; item <= itemTo; item++ )
|
||||
{
|
||||
RefreshItem(item);
|
||||
}
|
||||
wxRect rect1, rect2;
|
||||
GetItemRect(itemFrom, rect1);
|
||||
GetItemRect(itemTo, rect2);
|
||||
|
||||
wxRect rect = rect1;
|
||||
rect.height = rect2.GetBottom() - rect1.GetTop();
|
||||
|
||||
RefreshRect(rect);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user