diff options
author | Michael Jennings <mej@kainx.org> | 1999-12-28 10:05:43 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 1999-12-28 10:05:43 +0000 |
commit | cebe627ab6e8ee851f682a7bc46d752c06fd35cd (patch) | |
tree | 5cc4a202ee10a5b43ba17f327839c54fd17bffe3 /src/screen.h | |
parent | d5373ead6a780b1a2c55c0398366349b7563cb09 (diff) | |
download | eterm-cebe627ab6e8ee851f682a7bc46d752c06fd35cd.tar.gz |
Tue Dec 28 11:44:10 PST 1999 Michael Jennings <mej@eterm.org>
Thanks to a cl00 from raster, double buffering is much more efficient
now. :-)
SVN revision: 1780
Diffstat (limited to 'src/screen.h')
-rw-r--r-- | src/screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screen.h b/src/screen.h index 907b976..e7aea31 100644 --- a/src/screen.h +++ b/src/screen.h @@ -49,6 +49,8 @@ #define CLEAR_CHARS(x, y, num) ((buffer_pixmap) \ ? (XCopyArea(Xdisplay, pmap, buffer_pixmap, TermWin.gc, x, y, Width2Pixel(num), Height2Pixel(1), x, y)) \ : (XClearArea(Xdisplay, TermWin.vt, x, y, Width2Pixel(num), Height2Pixel(1), 0))) +#define UPDATE_BOX(x1, y1, x2, y2) do {if (buffer_pixmap) {if (x1 < low_x) low_x = x1; if (x2 > high_x) high_x = x2; \ + if (y1 < low_y) low_y = y1; if (y2 > high_y) high_y = y2;}} while (0) #define ERASE_ROWS(row, num) (XFillRectangle(Xdisplay, draw_buffer, TermWin.gc, Col2Pixel(0), Row2Pixel(row), TermWin.width, Height2Pixel(num))) #define DRAW_STRING(Func, x, y, str, len) Func(Xdisplay, draw_buffer, TermWin.gc, x, y, str, len) #ifndef NO_BRIGHTCOLOR |