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

Function XOpenDisplay

server/faker-x11.cpp:568–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566// called first.
567
568Display *XOpenDisplay(_Xconst char *name)
569{
570 Display *dpy = NULL;
571
572 TRY();
573
574 if(faker::deadYet || faker::getFakerLevel() > 0)
575 return _XOpenDisplay(name);
576
577 faker::init();
578
579 /////////////////////////////////////////////////////////////////////////////
580 OPENTRACE(XOpenDisplay); PRARGS(name); STARTTRACE();
581 /////////////////////////////////////////////////////////////////////////////
582
583 dpy = _XOpenDisplay(name);
584 if(dpy) setupXDisplay(dpy);
585
586 /////////////////////////////////////////////////////////////////////////////
587 STOPTRACE(); PRARGD(dpy); CLOSETRACE();
588 /////////////////////////////////////////////////////////////////////////////
589
590 CATCH();
591 return dpy;
592}
593
594
595// XkbOpenDisplay() calls XOpenDisplay(), but since that function call occurs

Callers 15

startFunction · 0.85
GLFrameMethod · 0.85
testFunction · 0.85
readbackTestFunction · 0.85
readbackTestMSFunction · 0.85
flushTestFunction · 0.85
visTestFunction · 0.85
multiThreadTestFunction · 0.85
offScreenTestFunction · 0.85
contextMismatchTestFunction · 0.85
copyContextTestFunction · 0.85
subWinTestFunction · 0.85

Calls 2

setupXDisplayFunction · 0.85
initFunction · 0.70

Tested by 5

testFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68