summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-11 20:59:52 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-11 20:59:52 +0200
commit6787dbc234dcf23a20eabf53ff4990e4e2abc523 (patch)
tree490f1f408b7fcc1fff1a593c3c94d9e12387b08c
parent06c128bde24c94665cd25ce97804fb5f11fc2a73 (diff)
downloadvdr-plugin-dxr3-6787dbc234dcf23a20eabf53ff4990e4e2abc523.tar.gz
vdr-plugin-dxr3-6787dbc234dcf23a20eabf53ff4990e4e2abc523.tar.bz2
uppss...
-rw-r--r--spuregion.c14
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 = &sections[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 = &sections[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;
}
}