diff options
author | Christoph Lohmann <20h@r-36.net> | 2016-03-07 14:33:05 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2016-03-07 14:33:05 +0100 |
commit | 30440295bc054f37a2a8275acca769cd83bcb780 (patch) | |
tree | 3ef9d6ad601f93a2e98be90b15c281e130e5cca4 | |
parent | 4fdba860c8db70035e9749806ecc6ca2d7c418d0 (diff) | |
download | st-patched-30440295bc054f37a2a8275acca769cd83bcb780.tar.bz2 st-patched-30440295bc054f37a2a8275acca769cd83bcb780.tar.xz st-patched-30440295bc054f37a2a8275acca769cd83bcb780.zip |
xtermclear() is now done by xdrawglyphfontspecs()
Thanks Ton van den Heuvel for the proposal!
-rw-r--r-- | st.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -439,7 +439,6 @@ static void xresettitle(void); | |||
439 | static void xsetpointermotion(int); | 439 | static void xsetpointermotion(int); |
440 | static void xseturgency(int); | 440 | static void xseturgency(int); |
441 | static void xsetsel(char *, Time); | 441 | static void xsetsel(char *, Time); |
442 | static void xtermclear(int, int, int, int); | ||
443 | static void xunloadfont(Font *); | 442 | static void xunloadfont(Font *); |
444 | static void xunloadfonts(void); | 443 | static void xunloadfonts(void); |
445 | static void xresize(int, int); | 444 | static void xresize(int, int); |
@@ -3213,17 +3212,6 @@ xsetcolorname(int x, const char *name) | |||
3213 | return 0; | 3212 | return 0; |
3214 | } | 3213 | } |
3215 | 3214 | ||
3216 | void | ||
3217 | xtermclear(int col1, int row1, int col2, int row2) | ||
3218 | { | ||
3219 | XftDrawRect(xw.draw, | ||
3220 | &dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg], | ||
3221 | borderpx + col1 * xw.cw, | ||
3222 | borderpx + row1 * xw.ch, | ||
3223 | (col2-col1+1) * xw.cw, | ||
3224 | (row2-row1+1) * xw.ch); | ||
3225 | } | ||
3226 | |||
3227 | /* | 3215 | /* |
3228 | * Absolute coordinates. | 3216 | * Absolute coordinates. |
3229 | */ | 3217 | */ |
@@ -3983,7 +3971,6 @@ drawregion(int x1, int y1, int x2, int y2) | |||
3983 | if (!term.dirty[y]) | 3971 | if (!term.dirty[y]) |
3984 | continue; | 3972 | continue; |
3985 | 3973 | ||
3986 | xtermclear(0, y, term.col, y); | ||
3987 | term.dirty[y] = 0; | 3974 | term.dirty[y] = 0; |
3988 | 3975 | ||
3989 | specs = term.specbuf; | 3976 | specs = term.specbuf; |