diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-11 20:59:52 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-11 20:59:52 +0200 |
commit | 6787dbc234dcf23a20eabf53ff4990e4e2abc523 (patch) | |
tree | 490f1f408b7fcc1fff1a593c3c94d9e12387b08c /spuregion.c | |
parent | 06c128bde24c94665cd25ce97804fb5f11fc2a73 (diff) | |
download | vdr-plugin-dxr3-6787dbc234dcf23a20eabf53ff4990e4e2abc523.tar.gz vdr-plugin-dxr3-6787dbc234dcf23a20eabf53ff4990e4e2abc523.tar.bz2 |
uppss...
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; } } |