[hackers] [st] we need DrawImage instead of Draw, otherwise the cursor gets invisible ; (

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Fri Mar 02 16:02:19 2007

changeset: 57:92723bf904a9
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Mar 02 16:00:51 2007 +0100
summary: we need DrawImage instead of Draw, otherwise the cursor gets invisible ;(

diff -r 6aff8d47690e -r 92723bf904a9 vt.c
--- a/vt.c Fri Mar 02 15:58:33 2007 +0100
+++ b/vt.c Fri Mar 02 16:00:51 2007 +0100
@@ -31,9 +31,9 @@ void
 void
 win_draw_string(int row, int col, char *s, int l) {
         if(dc.font.set)
- XmbDrawString(dpy, win, dc.font.set, gc, col * dc.font.width, row * dc.font.height + dc.font.ascent, s, l);
+ XmbDrawImageString(dpy, win, dc.font.set, gc, col * dc.font.width, row * dc.font.height + dc.font.ascent, s, l);
         else
- XDrawString(dpy, win, gc, col * dc.font.width, row * dc.font.height + dc.font.ascent, s, l);
+ XDrawImageString(dpy, win, gc, col * dc.font.width, row * dc.font.height + dc.font.ascent, s, l);
 }
 
 void
Received on Fri Mar 02 2007 - 16:02:19 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:05 UTC