Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
eab9aad
)
fixed pixmap buffer drawing.
author
Aurélien Aptel <
[email protected]
>
Sun, 29 Aug 2010 17:41:36 +0000
(19:41 +0200)
committer
Aurélien Aptel <
[email protected]
>
Sun, 29 Aug 2010 17:41:36 +0000
(19:41 +0200)
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8f6aa04
..
5f206fd
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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 = 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;
temp = term.line[i];
term.line[i] = term.line[i+n];
term.line[i+n] = temp;
-
}
+ }
}
void
}
void
@@
-1181,7
+1181,7
@@
draw(int redraw_all) {
char buf[DRAW_BUF_SIZ];
XSetForeground(xw.dis, dc.gc, dc.col[DefaultBG]);
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.buf
h);
for(y = 0; y < term.row; y++) {
base = term.line[y][0];
i = ox = 0;
for(y = 0; y < term.row; y++) {
base = term.line[y][0];
i = ox = 0;