[hackers] [st] fixed pixmap buffer drawing. || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Sun, 29 Aug 2010 16:16:34 +0000 (UTC)

changeset: 102:141d5557c9e4
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Sun Aug 29 19:41:36 2010 +0200
files: st.c
description:
fixed pixmap buffer drawing.

diff -r 4e0d497345a0 -r 141d5557c9e4 st.c
--- a/st.c Sun Aug 29 19:14:05 2010 +0200
+++ b/st.c Sun Aug 29 19:41:36 2010 +0200
@@ -373,11 +373,11 @@
         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 @@
         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;
Received on Sun Aug 29 2010 - 18:16:34 CEST

This archive was generated by hypermail 2.2.0 : Sun Aug 29 2010 - 18:24:05 CEST