MCPcopy Create free account
hub / github.com/NetHack/NetHack / cursor_common

Function cursor_common

sys/amiga/winfuncs.c:1931–1952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929}
1930
1931static void
1932cursor_common(struct RastPort *rp, int x, int y)
1933{
1934 int x1, x2, y1, y2;
1935
1936 if (Is_rogue_level(&u.uz)) {
1937 x1 = x - 2;
1938 y1 = y - rp->TxHeight;
1939 x2 = x + rp->TxWidth + 1;
1940 y2 = y + 3;
1941 /*printf("COMM: (%d %d) (%d %d) (%d %d) (%d
1942 * %d)\n",x1,y1,x2,y2,x1+2,y1+2,x2-2,y2-2);*/
1943 } else {
1944 x1 = x;
1945 y1 = y - mysize - 1;
1946 x2 = x + mxsize - 1;
1947 y2 = y - 2;
1948 RectFill(rp, x1, y1, x2, y2);
1949 }
1950
1951 RectFill(rp, x1 + 2, y1 + 2, x2 - 2, y2 - 2);
1952}
1953
1954void
1955amii_suspend_nhwindows(const char *str)

Callers 2

cursor_offFunction · 0.85
cursor_onFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected