diff options
Diffstat (limited to 'spuregion.c')
-rw-r--r-- | spuregion.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spuregion.c b/spuregion.c index 1a183eb..4b25147 100644 --- a/spuregion.c +++ b/spuregion.c @@ -33,23 +33,23 @@ cSpuRegion::cSpuRegion() : startLine(0), endLine(0), usedSections(0) bool cSpuRegion::addColIndex(tIndex idx) { - sSection sec = sections[usedSections]; + sSection *sec = §ions[usedSections]; - if (sec.usedColors == MAX_COLORS) { + if (sec->usedColors == MAX_COLORS) { return false; } - sec.cmap[idx] = sec.usedColors; - sec.colIndex[sec.usedColors++] = idx; + sec->cmap[idx] = sec->usedColors; + sec->colIndex[sec->usedColors++] = idx; return true; } bool cSpuRegion::containsColIndex(tIndex idx) { - sSection sec = sections[usedSections]; + sSection *sec = §ions[usedSections]; - for (uint8_t i = 0; i < sec.usedColors; i++) { - if (sec.colIndex[i] == idx) { + for (uint8_t i = 0; i < sec->usedColors; i++) { + if (sec->colIndex[i] == idx) { return true; } } |