Switched rendering to new color format.

This commit is contained in:
leo
2012-04-18 00:03:28 +00:00
parent 14a98b2dc5
commit 392f399b89
8 changed files with 124 additions and 104 deletions
+10 -1
View File
@@ -236,6 +236,15 @@ void ObjArray<T>::RemoveIndex(int Index)
m_Data[i] = m_Data[i+1];
}
template <class T>
void ObjArray<T>::SetSize(int NewSize)
{
if (NewSize > m_Alloc)
Expand(NewSize - m_Alloc);
m_Length = NewSize;
}
template <class T>
void ObjArray<T>::Add(const T& Obj)
{
@@ -252,7 +261,7 @@ void ObjArray<T>::AddSorted (const T& Obj, LC_OBJARRAY_COMPARE_FUNC Func, void*
{
if (Func(Obj, m_Data[i], SortData) < 0)
{
InsertAt (i, Obj);
InsertAt(i, Obj);
return;
}
}