MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / FrameTest

Method FrameTest

common/frameut.cpp:418–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416 public:
417
418 FrameTest(Display *dpy_, int myID_) : dpy(dpy_), compressor(NULL),
419 decompressor(NULL), blitter(NULL), myID(myID_)
420 {
421 ERRIFNOT(win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy),
422 myID * (MINW + BORDER * 2), 0, MINW + BORDER, MINW + BORDER, 0,
423 WhitePixel(dpy, DefaultScreen(dpy)),
424 BlackPixel(dpy, DefaultScreen(dpy))));
425 ERRIFNOT(XMapRaised(dpy, win));
426
427 blitter = new Blitter(dpy, win, myID);
428 if(!useXV)
429 decompressor = new Decompressor(blitter, dpy, win, myID);
430 compressor = new Compressor(decompressor, blitter);
431 }
432
433 ~FrameTest(void) { shutdown(); XDestroyWindow(dpy, win); }
434

Callers

nothing calls this directly

Calls 1

XCreateSimpleWindowFunction · 0.85

Tested by

no test coverage detected