Lines Matching refs:top_marg
211 scrollheight = screen->bot_marg - screen->top_marg - refreshheight + 1;
226 && screen->top_marg == 0) {
240 scrolltop = screen->top_marg + shift;
249 i = screen->top_marg + screen->scroll_amt - 1 - bot;
261 scrollheight = screen->bot_marg - screen->top_marg - refreshheight + 1;
262 refreshtop = screen->top_marg + shift;
268 i = screen->top_marg + refreshheight - 1 - bot;
330 if (row == (top = screen->top_marg) + amount) {
379 : screen->top_marg);
393 TRACE2((" margins %d..%d\n", screen->top_marg, screen->bot_marg));
452 int lo_row = screen->top_marg;
464 TRACE2((" margins %d..%d\n", screen->top_marg, screen->bot_marg));
610 && screen->top_marg == 0);
622 i = screen->bot_marg - screen->top_marg + 1;
692 scrolltop = screen->top_marg + shift;
695 if ((i = screen->top_marg + amount - 1 - bot) >= 0) {
703 screen->topline == 0 && screen->top_marg == 0 &&
732 scrollInMargins(xw, amount, screen->top_marg);
734 screen->top_marg,
736 screen->bot_marg + 1 - screen->top_marg,
749 screen->top_marg,
828 min_row = screen->top_marg;
872 int i = screen->bot_marg - screen->top_marg + 1;
909 int refreshtop = screen->top_marg + shift;
911 - screen->top_marg - refreshheight + 1);
916 if ((i = screen->top_marg + refreshheight - 1 - bot) > 0)
920 screen->topline == 0 && screen->top_marg == 0 &&
945 scrollInMargins(xw, -amount, screen->top_marg);
947 screen->top_marg,
949 screen->bot_marg + 1 - screen->top_marg,
956 screen->top_marg,
1237 INX2ROW(screen, screen->top_marg),
1340 if (screen->scroll_amt >= 0 && screen->cur_row == screen->top_marg) {