MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / x11_CreatePixmap

Function x11_CreatePixmap

source/x11/x11common.cpp:1667–1680  ·  view source on GitHub ↗

Pixmap XCreatePixmap(Display* display, Drawable d, unsigned int width, unsigned int height, unsigned int depth) The server uses the specified drawable to determine on which screen to create the pixmap. The pixmap can be used only on this screen and only with other drawables of the same depth

Source from the content-addressed store, hash-verified

1665//
1666// The server uses the specified drawable to determine on which screen to create the pixmap. The pixmap can be used only on this screen and only with other drawables of the same depth
1667static void x11_CreatePixmap(CPU* cpu) {
1668 XServer* server = XServer::getServer();
1669 // Display* display = X11::getDisplay(thread, ARG1);
1670 // U32 width = ARG3;
1671 // U32 height = ARG4;
1672 // U32 depth = ARG5;
1673 XDrawablePtr d = server->getDrawable(ARG2);
1674 if (!d) {
1675 EAX = BadDrawable;
1676 return;
1677 }
1678 std::shared_ptr<XPixmap> pixmap = server->createNewPixmap(ARG3, ARG4, ARG5, d->getVisual());
1679 EAX = pixmap->id;
1680}
1681
1682// Pixmap XCreateBitmapFromData(Display* display, Drawable d, const char* data, unsigned int width, unsigned int height)
1683static void x11_CreateBitmapFromData(CPU* cpu) {

Callers

nothing calls this directly

Calls 3

getDrawableMethod · 0.80
createNewPixmapMethod · 0.80
getVisualMethod · 0.45

Tested by

no test coverage detected