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

Function canonical_rect

outdated/sys/mac/mactty.c:1221–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219}
1220
1221static void
1222canonical_rect(Rect *r, short x1, short y1, short x2, short y2)
1223{
1224 if (x1 < x2) {
1225 if (y1 < y2) {
1226 SetRect(r, x1, x2, y1, y2);
1227 } else {
1228 SetRect(r, x1, x2, y2, y1);
1229 }
1230 } else {
1231 if (y1 < y2) {
1232 SetRect(r, x2, x1, y1, y2);
1233 } else {
1234 SetRect(r, x2, x1, y2, y1);
1235 }
1236 }
1237}
1238
1239/*
1240 * Line drawing - very device dependent

Callers 1

draw_tty_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected