[hackers] [st] removed useless cursor init. and renamed xcursor() to xdrawcursor(). || Aurélien Aptel

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

changeset: 107:8d03b7d6c29f
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Mon Aug 30 01:45:57 2010 +0200
files: st.c
description:
removed useless cursor init. and renamed xcursor() to xdrawcursor().

diff -r 5aba5698a96e -r 8d03b7d6c29f st.c
--- a/st.c Mon Aug 30 01:35:37 2010 +0200
+++ b/st.c Mon Aug 30 01:45:57 2010 +0200
@@ -165,7 +165,7 @@
 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);
 
@@ -1071,9 +1071,6 @@
         /* 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;
@@ -1118,7 +1115,7 @@
 }
 
 void
-xcursor(void) {
+xdrawcursor(void) {
         static int oldx = 0;
         static int oldy = 0;
         Glyph g = {' ', ATTR_NULL, DefaultBG, DefaultCS, 0};
@@ -1163,7 +1160,7 @@
                         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, BORDER, BORDER);
         XFlush(xw.dis);
 }
@@ -1199,7 +1196,7 @@
                 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, BORDER, BORDER);
         XFlush(xw.dis);
 }
Received on Mon Aug 30 2010 - 01:12:16 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 30 2010 - 01:24:05 CEST