diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 10:39:41 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-22 10:39:41 +0200 |
commit | b2b3a3f6689cff4dbf719138d824045f32041d6d (patch) | |
tree | 58a0affc9c755d999c6deabff22c89ab3bafe4ca /spuregion.h | |
parent | 4a6f01dfb2e1babf8b2c24e5961190009fdd2f0a (diff) | |
download | vdr-plugin-dxr3-b2b3a3f6689cff4dbf719138d824045f32041d6d.tar.gz vdr-plugin-dxr3-b2b3a3f6689cff4dbf719138d824045f32041d6d.tar.bz2 |
use section method to get a pointer to a valid sSection or NULL
Diffstat (limited to 'spuregion.h')
-rw-r--r-- | spuregion.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spuregion.h b/spuregion.h index 0af9996..8fa0e3d 100644 --- a/spuregion.h +++ b/spuregion.h @@ -30,6 +30,7 @@ #include <vdr/osd.h> const static int MAX_COLORS = 4; +const static int MAX_SECTIONS = 15; // we can support up to 15 sections per region struct sSection { uint16_t startColumn; @@ -45,15 +46,16 @@ public: uint16_t startLine; uint16_t endLine; - sSection sections[15]; // sections per region uint8_t openSections(); + sSection *section(uint8_t num); bool addColIndex(tIndex idx); bool containsColIndex(tIndex idx); private: uint8_t usedSections; + sSection sections[MAX_SECTIONS]; }; #endif // SPUREGION_H |