From 6787dbc234dcf23a20eabf53ff4990e4e2abc523 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 11 Sep 2009 20:59:52 +0200 Subject: uppss... --- spuregion.c | 14 +++++++------- 1 file 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; } } -- cgit v1.2.3