Mercurial > hg > xemacs-beta
diff src/redisplay-x.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | b2472a1930f2 |
children | c42ec1d1cded |
line wrap: on
line diff
--- a/src/redisplay-x.c Mon Aug 13 10:27:41 2007 +0200 +++ b/src/redisplay-x.c Mon Aug 13 10:28:48 2007 +0200 @@ -658,8 +658,6 @@ background_gc, shadow_thickness); } -void debug_print (Lisp_Object); /* kludge! */ - /***************************************************************************** x_get_gc @@ -785,8 +783,8 @@ /* General variables */ struct frame *f = XFRAME (w->frame); struct device *d = XDEVICE (f->device); - Lisp_Object device = Qnil; - Lisp_Object window = Qnil; + Lisp_Object device; + Lisp_Object window; Display *dpy = DEVICE_X_DISPLAY (d); Window x_win = XtWindow (FRAME_X_TEXT_WIDGET (f)); @@ -2091,12 +2089,7 @@ gc = x_get_gc (d, Qnil, cursor_cachel->background, Qnil, Qnil, Qnil); - { - Lisp_Object window = Qnil; - - XSETWINDOW (window, w); - default_face_font_info (window, &defascent, 0, &defheight, 0, 0); - } + default_face_font_info (window, &defascent, 0, &defheight, 0, 0); /* make sure the cursor is entirely contained between y and y+height */ cursor_height = min (defheight, height);