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

Function amii_scrollmsg

sys/amiga/winstr.c:289–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void
290amii_scrollmsg(struct Window *w, struct amii_WinDesc *cw)
291{
292 int bottom, wheight;
293
294 bottom = amii_msgborder(w);
295
296 wheight =
297 (w->Height - w->BorderTop - w->BorderBottom - 3) / w->RPort->TxHeight;
298
299 if (scrollmsg) {
300 if (++cw->disprows > wheight) {
301 outmore(cw);
302 cw->disprows = 1; /* count this line... */
303 } else {
304 ScrollRaster(w->RPort, 0, w->RPort->TxHeight, w->BorderLeft,
305 w->BorderTop + 1, w->Width - w->BorderRight - 1,
306 w->Height - w->BorderBottom - 1);
307 }
308 amii_curs(WIN_MESSAGE, 1, bottom);
309 }
310}
311
312int
313amii_msgborder(struct Window *w)

Callers 1

amii_putstrFunction · 0.85

Calls 3

amii_msgborderFunction · 0.85
outmoreFunction · 0.85
amii_cursFunction · 0.85

Tested by

no test coverage detected