diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-12 21:46:02 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-12 21:46:02 +0000 |
| commit | eb8a11a5a7b066ada63cc3550f8314f53eaf1a39 (patch) | |
| tree | d1482c9277a988523961ef4d5144ea18cf9389aa /src/BaseDisplay.h | |
| parent | ebdf25bf6710c9cf585489302dcd8ca23b9b226a (diff) | |
removed LinkedLists in BaseDisplay and Image. Only 1 left in BaseDisplay now
Diffstat (limited to 'src/BaseDisplay.h')
| -rw-r--r-- | src/BaseDisplay.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/BaseDisplay.h b/src/BaseDisplay.h index 1a44dddc..9386a261 100644 --- a/src/BaseDisplay.h +++ b/src/BaseDisplay.h @@ -33,6 +33,8 @@ class ScreenInfo; #include "LinkedList.h" #include "Timer.h" #include "Geometry.h" +#include "Util.h" +#include <vector> #define AttribShaded (1l << 0) #define AttribMaxHoriz (1l << 1) @@ -127,7 +129,10 @@ private: Bool _startup, _shutdown; Display *display; - LinkedList<ScreenInfo> *screenInfoList; + + typedef std::vector<ScreenInfo*> ScreenInfoList; + ScreenInfoList screenInfoList; + LinkedList<BTimer> *timerList; char *display_name, *application_name; @@ -270,8 +275,10 @@ public: #endif // NEWWMSPEC - inline ScreenInfo *getScreenInfo(int s) - { return (ScreenInfo *) screenInfoList->find(s); } + inline ScreenInfo *getScreenInfo(int s) { + ASSERT(s < screenInfoList.size()); + return screenInfoList[s]; + } inline const Bool &hasShapeExtensions(void) const { return shape.extensions; } |
