| 287 | } |
| 288 | |
| 289 | void |
| 290 | amii_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 | |
| 312 | int |
| 313 | amii_msgborder(struct Window *w) |
no test coverage detected