From eb8a11a5a7b066ada63cc3550f8314f53eaf1a39 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 12 May 2002 21:46:02 +0000 Subject: removed LinkedLists in BaseDisplay and Image. Only 1 left in BaseDisplay now --- src/BaseDisplay.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/BaseDisplay.h') 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 #define AttribShaded (1l << 0) #define AttribMaxHoriz (1l << 1) @@ -127,7 +129,10 @@ private: Bool _startup, _shutdown; Display *display; - LinkedList *screenInfoList; + + typedef std::vector ScreenInfoList; + ScreenInfoList screenInfoList; + LinkedList *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; } -- cgit v1.2.3