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

Function ShowClipValues

sys/amiga/winreq.c:311–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void
312ShowClipValues(struct Window *nw)
313{
314 char buf[50];
315 struct Gadget *gd;
316
317 SetAPen(nw->RPort, 5);
318 SetBPen(nw->RPort, amii_otherBPen);
319 SetDrMd(nw->RPort, JAM2);
320
321 sprintf(buf, "%d ", mxsize);
322 gd = &ClipXSIZE;
323 Move(nw->RPort, gd->LeftEdge + (nw->Width + gd->Width) + 8,
324 gd->TopEdge + nw->RPort->TxBaseline);
325 Text(nw->RPort, buf, strlen(buf));
326
327 sprintf(buf, "%d ", mysize);
328 gd = &ClipYSIZE;
329 Move(nw->RPort, gd->LeftEdge + (nw->Width + gd->Width) + 8,
330 gd->TopEdge + nw->RPort->TxBaseline);
331 Text(nw->RPort, buf, strlen(buf));
332
333 sprintf(buf, "%d ", xclipbord);
334 gd = &ClipXCLIP;
335 Move(nw->RPort, gd->LeftEdge + (nw->Width + gd->Width) + 8,
336 gd->TopEdge + nw->RPort->TxBaseline);
337 Text(nw->RPort, buf, strlen(buf));
338
339 sprintf(buf, "%d ", yclipbord);
340 gd = &ClipYCLIP;
341 Move(nw->RPort, gd->LeftEdge + (nw->Width + gd->Width) + 8,
342 gd->TopEdge + nw->RPort->TxBaseline);
343 Text(nw->RPort, buf, strlen(buf));
344}
345
346void
347EditClipping(void)

Callers 1

EditClippingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected