Quellcode durchsuchen

load more than 2 items in the future, double the displayed row count now

scott brogden vor 8 Jahren
Ursprung
Commit
cb58c5966b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      QPasteWnd.cpp

+ 1 - 1
QPasteWnd.cpp

@@ -4807,7 +4807,7 @@ void CQPasteWnd::GetDispInfo(NMHDR *pNMHDR, LRESULT *pResult)
 
 
                         if(addToLoadItems)
                         if(addToLoadItems)
                         {
                         {
-                            CPoint loadItem(pItem->iItem, (m_lstHeader.GetTopIndex() + m_lstHeader.GetCountPerPage() + 2));
+                            CPoint loadItem(pItem->iItem, (m_lstHeader.GetTopIndex() + (m_lstHeader.GetCountPerPage() * 2)));
 
 
 							//Log(StrF(_T("DrawItem index %d, add: %d"), loadItem.x, loadItem.y));
 							//Log(StrF(_T("DrawItem index %d, add: %d"), loadItem.x, loadItem.y));
                             m_loadItems.push_back(loadItem);
                             m_loadItems.push_back(loadItem);