projects
/
dana
/
urxvt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify rxvt_temp_buf usage.
[dana/urxvt.git]
/
src
/
rxvtfont.C
diff --git
a/src/rxvtfont.C
b/src/rxvtfont.C
index
8f52614
..
a4dd1d6
100644
(file)
--- a/
src/rxvtfont.C
+++ b/
src/rxvtfont.C
@@
-1295,7
+1295,7
@@
rxvt_font_xft::draw (rxvt_drawable &d, int x, int y,
int fg, int bg)
{
XGlyphInfo extents;
int fg, int bg)
{
XGlyphInfo extents;
- XftGlyphSpec *enc =
(XftGlyphSpec *)rxvt_temp_buf (len * sizeof (XftGlyphSpec)
);
+ XftGlyphSpec *enc =
rxvt_temp_buf<XftGlyphSpec> (len
);
XftGlyphSpec *ep = enc;
dTermDisplay;
XftGlyphSpec *ep = enc;
dTermDisplay;