mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Rename _countof to sizeOfArray (#921)
This commit is contained in:

committed by
GitHub

parent
95ed90aacb
commit
e32e06321a
@@ -147,7 +147,7 @@ BOOL MxDirectDraw::SetPaletteEntries(const PALETTEENTRY* pPaletteEntries, int pa
|
||||
{
|
||||
int reservedLowEntryCount = 10;
|
||||
int reservedHighEntryCount = 10;
|
||||
int arraySize = _countof(m_paletteEntries);
|
||||
int arraySize = sizeOfArray(m_paletteEntries);
|
||||
HDC hdc;
|
||||
int i;
|
||||
|
||||
@@ -184,7 +184,7 @@ BOOL MxDirectDraw::SetPaletteEntries(const PALETTEENTRY* pPaletteEntries, int pa
|
||||
if (m_pPalette) {
|
||||
HRESULT result;
|
||||
|
||||
result = m_pPalette->SetEntries(0, 0, _countof(m_paletteEntries), m_paletteEntries);
|
||||
result = m_pPalette->SetEntries(0, 0, sizeOfArray(m_paletteEntries), m_paletteEntries);
|
||||
if (result != DD_OK) {
|
||||
Error("SetEntries failed", result);
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user