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

Function x11_FillRectangle

source/x11/x11common.cpp:1908–1941  ·  view source on GitHub ↗

int XFillRectangle(Display* display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height)

Source from the content-addressed store, hash-verified

1906
1907// int XFillRectangle(Display* display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height)
1908static void x11_FillRectangle(CPU* cpu) {
1909 KThread* thread = cpu->thread;
1910 XServer* server = XServer::getServer();
1911 XDrawablePtr drawable = server->getDrawable(ARG2);
1912 if (!drawable) {
1913 EAX = BadDrawable;
1914 return;
1915 }
1916 XGCPtr gc = server->getGC(ARG3);
1917 if (!gc) {
1918 EAX = BadGC;
1919 return;
1920 }
1921 if (server->traceGC) {
1922 BString log;
1923 DisplayDataPtr data = server->getDisplayDataByAddressOfDisplay(cpu->memory, ARG1);
1924
1925 log.append(data->displayId, 16);
1926 log += " FillRectangle drawable=";
1927 log.append(ARG2, 16);
1928 log += " gc=";
1929 log.append(ARG3, 16);
1930 log += " x=";
1931 log += ARG4;
1932 log += " y=";
1933 log += ARG5;
1934 log += " width=";
1935 log += ARG6;
1936 log += " height=";
1937 log += ARG7;
1938 klog(log.c_str());
1939 }
1940 EAX = drawable->fillRectangle(thread, gc, ARG4, ARG5, ARG6, ARG7);
1941}
1942
1943static void x11_FillRectangles(CPU* cpu) {
1944 kpanic("x11_FillRectangles");

Callers

nothing calls this directly

Calls 7

klogFunction · 0.85
getDrawableMethod · 0.80
getGCMethod · 0.80
fillRectangleMethod · 0.80
appendMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected