Mercurial > emacs
diff src/w32console.c @ 51206:22a5614b558f
Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
| author | Kim F. Storm <storm@cua.dk> |
|---|---|
| date | Sat, 24 May 2003 22:07:03 +0000 |
| parents | f9447a2e045c |
| children | 695cf19ef79e |
line wrap: on
line diff
--- a/src/w32console.c Sat May 24 22:06:40 2003 +0000 +++ b/src/w32console.c Sat May 24 22:07:03 2003 +0000 @@ -121,8 +121,8 @@ { struct frame * f = PICK_FRAME (); - clear_end_of_line (FRAME_WIDTH (f) - 1); - ins_del_lines (cursor_coords.Y, FRAME_HEIGHT (f) - cursor_coords.Y - 1); + clear_end_of_line (FRAME_COLS (f) - 1); + ins_del_lines (cursor_coords.Y, FRAME_LINES (f) - cursor_coords.Y - 1); } /* Clear the frame. */ @@ -138,7 +138,7 @@ GetConsoleScreenBufferInfo (GetStdHandle (STD_OUTPUT_HANDLE), &info); /* Remember that the screen buffer might be wider than the window. */ - n = FRAME_HEIGHT (f) * info.dwSize.X; + n = FRAME_LINES (f) * info.dwSize.X; dest.X = dest.Y = 0; FillConsoleOutputAttribute (cur_screen, char_attr_normal, n, dest, &r); @@ -180,17 +180,17 @@ if (n < 0) { scroll.Top = vpos - n; - scroll.Bottom = FRAME_HEIGHT (f); + scroll.Bottom = FRAME_LINES (f); dest.Y = vpos; } else { scroll.Top = vpos; - scroll.Bottom = FRAME_HEIGHT (f) - n; + scroll.Bottom = FRAME_LINES (f) - n; dest.Y = vpos + n; } scroll.Left = 0; - scroll.Right = FRAME_WIDTH (f); + scroll.Right = FRAME_COLS (f); dest.X = 0; @@ -213,7 +213,7 @@ for (i = scroll.Bottom; i < dest.Y; i++) { move_cursor (i, 0); - clear_end_of_line (FRAME_WIDTH (f)); + clear_end_of_line (FRAME_COLS (f)); } } } @@ -226,7 +226,7 @@ for (i = nb; i < scroll.Top; i++) { move_cursor (i, 0); - clear_end_of_line (FRAME_WIDTH (f)); + clear_end_of_line (FRAME_COLS (f)); } } } @@ -256,12 +256,12 @@ if (direction == LEFT) { scroll.Left = cursor_coords.X + dist; - scroll.Right = FRAME_WIDTH (f) - 1; + scroll.Right = FRAME_COLS (f) - 1; } else { scroll.Left = cursor_coords.X; - scroll.Right = FRAME_WIDTH (f) - dist - 1; + scroll.Right = FRAME_COLS (f) - dist - 1; } dest.X = cursor_coords.X; @@ -661,16 +661,16 @@ if (w32_use_full_screen_buffer) { - FRAME_HEIGHT (SELECTED_FRAME ()) = info.dwSize.Y; /* lines per page */ - SET_FRAME_WIDTH (SELECTED_FRAME (), info.dwSize.X); /* characters per line */ + FRAME_LINES (SELECTED_FRAME ()) = info.dwSize.Y; /* lines per page */ + SET_FRAME_COLS (SELECTED_FRAME (), info.dwSize.X); /* characters per line */ } else { /* Lines per page. Use buffer coords instead of buffer size. */ - FRAME_HEIGHT (SELECTED_FRAME ()) = 1 + info.srWindow.Bottom - + FRAME_LINES (SELECTED_FRAME ()) = 1 + info.srWindow.Bottom - info.srWindow.Top; /* Characters per line. Use buffer coords instead of buffer size. */ - SET_FRAME_WIDTH (SELECTED_FRAME (), 1 + info.srWindow.Right - + SET_FRAME_COLS (SELECTED_FRAME (), 1 + info.srWindow.Right - info.srWindow.Left); }
