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
| 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 |
| 1667 | static 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) |
| 1683 | static void x11_CreateBitmapFromData(CPU* cpu) { |
nothing calls this directly
no test coverage detected