Dynamic m_textItems. This solves potential problems with

MAX_VISIBLE_VALUES_PER_LINE overflows.
This commit is contained in:
Glenn Maynard
2003-09-04 19:53:07 +00:00
parent 95e3575094
commit 413593f1e4
2 changed files with 69 additions and 36 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ private:
Sprite m_sprPage;
Sprite m_sprBullets[MAX_OPTION_LINES];
BitmapText m_textTitles[MAX_OPTION_LINES];
BitmapText m_textItems[MAX_OPTION_LINES][MAX_VISIBLE_VALUES_PER_LINE]; // this array has to be big enough to hold all of the options
vector<BitmapText *> m_textItems[MAX_OPTION_LINES];
bool m_bRowIsLong[MAX_OPTION_LINES]; // goes off edge of screen