- _mask_list[2] = _numLockMask;
- _mask_list[3] = LockMask | _numLockMask;
- _mask_list[4] = _scrollLockMask;
- _mask_list[5] = _scrollLockMask | LockMask;
- _mask_list[6] = _scrollLockMask | _numLockMask;
- _mask_list[7] = _scrollLockMask | LockMask | _numLockMask;
-
- // Get information on all the screens which are available.
- _screenInfoList.reserve(ScreenCount(display));
- for (int i = 0; i < ScreenCount(display); ++i)
- _screenInfoList.push_back(ScreenInfo(i));
-
- _gccache = new GCCache(_screenInfoList.size());
+ _mask_list[2] = _num_lock_mask;
+ _mask_list[3] = LockMask | _num_lock_mask;
+ _mask_list[4] = _scroll_lock_mask;
+ _mask_list[5] = _scroll_lock_mask | LockMask;
+ _mask_list[6] = _scroll_lock_mask | _num_lock_mask;
+ _mask_list[7] = _scroll_lock_mask | LockMask | _num_lock_mask;
+
+ // Get information on all the screens which are available, and create their
+ // RenderControl
+ _screeninfo_list = new ScreenInfo*[ScreenCount(_display)];
+ _rendercontrol_list = new RenderControl*[ScreenCount(_display)];
+ for (int i = 0; i < ScreenCount(_display); ++i) {
+ _screeninfo_list[i] = new ScreenInfo(i);
+ _rendercontrol_list[i] = RenderControl::getRenderControl(i);
+ }