mirror of
https://github.com/leozide/leocad.git
synced 2026-09-15 02:53:39 +00:00
Switched rendering to new color format.
This commit is contained in:
+10
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user