Home | History | Annotate | Download | only in dev

Lines Matching refs:top

300 static void screen_up(struct ite_softc *ip, int top, int bottom, int lines)
309 printf("screen_up %d %d %d ->",top,bottom,lines);
313 if (top >= bottom)
316 if (top + lines >= bottom)
318 ulowell_clear (ip, top, 0, bottom - top, ip->cols);
324 cmd[2] = top * ip->ftheight; /* y */
326 cmd[4] = (bottom-top+1) * ip->ftheight; /* h */
328 cmd[6] = (top-lines) * ip->ftheight; /* dst y */
334 static void screen_down(struct ite_softc *ip, int top, int bottom, int lines)
343 printf("screen_down %d %d %d ->",top,bottom,lines);
348 if (top >= bottom)
351 if (top + lines >= bottom)
353 ulowell_clear (ip, top, 0, bottom - top, ip->cols);
359 cmd[2] = top * ip->ftheight; /* y */
361 cmd[4] = (bottom - top - lines) * ip->ftheight; /* h */
363 cmd[6] = (top + lines) * ip->ftheight; /* dst y */
366 ulowell_clear(ip, top, 0, lines, ip->cols);