diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-29 19:41:36 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-29 19:41:36 +0200 |
commit | 27a7d85d0ca1d8539d15f7da71229674a8052df1 (patch) | |
tree | 95fc84d44018de478d2fafd481e1402363481d68 /st.c | |
parent | acf921d410eeb50e8410840b6793872aff8ea5b7 (diff) | |
download | st-27a7d85d0ca1d8539d15f7da71229674a8052df1.tar.gz st-27a7d85d0ca1d8539d15f7da71229674a8052df1.tar.bz2 |
fixed pixmap buffer drawing.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -373,11 +373,11 @@ tscrollup (int n) { for(i = 0; i < n; i++) memset(term.line[term.top+i], 0, term.col*sizeof(Glyph)); - for(i = term.top; i <= term.bot-n; i++) { + for(i = term.top; i <= term.bot-n; i++) { temp = term.line[i]; term.line[i] = term.line[i+n]; term.line[i+n] = temp; - } + } } void @@ -1181,7 +1181,7 @@ draw(int redraw_all) { char buf[DRAW_BUF_SIZ]; XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]); - XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.w, xw.h); + XFillRectangle(xw.dis, xw.buf, dc.gc, 0, 0, xw.bufw, xw.bufh); for(y = 0; y < term.row; y++) { base = term.line[y][0]; i = ox = 0; |