Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved useless cursor init. and renamed xcursor() to xdrawcursor(). - st - [f…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 188293c828033fd7ff74d753239b3a5052b372a2
parent 7d88cf88d05c5f5fffbe096da9fac79d7d8957f9
Author: AurĂ©lien Aptel <[email protected]>
Date: Mon, 30 Aug 2010 01:45:57 +0200
removed useless cursor init. and renamed xcursor() to xdrawcursor().
Diffstat:
M st.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -165,7 +165,7 @@ static void xbell(void);
static void xdraws(char *, Glyph, int, int, int);
static void xhints(void);
static void xclear(int, int, int, int);
-static void xcursor(void);
+static void xdrawcursor(void);
static void xinit(void);
static void xloadcols(void);
t@@ -1071,9 +1071,6 @@ xinit(void) {
/* colors */
xloadcols();
- term.c.attr.fg = DefaultFG;
- term.c.attr.bg = DefaultBG;
- term.c.attr.mode = ATTR_NULL;
/* windows */
xw.h = term.row * xw.ch + 2*BORDER;
xw.w = term.col * xw.cw + 2*BORDER;
t@@ -1118,7 +1115,7 @@ xdraws(char *s, Glyph base, int x, int y, int len) {
}
void
-xcursor(void) {
+xdrawcursor(void) {
static int oldx = 0;
static int oldy = 0;
Glyph g = {' ', ATTR_NULL, DefaultBG, DefaultCS, 0};
t@@ -1163,7 +1160,7 @@ draw(int dummy) {
if(term.line[y][x].state & GLYPH_SET)
xdrawc(x, y, term.line[y][x]);
- xcursor();
+ xdrawcursor();
XCopyArea(xw.dis, xw.buf, xw.win, dc.gc, 0, 0, xw.bufw, xw.bufh, BORDE…
XFlush(xw.dis);
}
t@@ -1199,7 +1196,7 @@ draw(int redraw_all) {
if(i > 0)
xdraws(buf, base, ox, y, i);
}
- xcursor();
+ xdrawcursor();
XCopyArea(xw.dis, xw.buf, xw.win, dc.gc, 0, 0, xw.bufw, xw.bufh, BORDE…
XFlush(xw.dis);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.