From: Karoly Lorentey Date: Sun, 22 Apr 2007 13:47:56 +0000 (+0000) Subject: Fix compilation error with non-toolkit scrollbar. X-Git-Tag: emacs-pretest-23.0.90~11236^2~141^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0218dbe25b68206442908b652b46b4974117bf9e;p=emacs.git Fix compilation error with non-toolkit scrollbar. * src/xterm.c (x_scroll_bar_expose): Fix reference to foreground pixel. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-604 --- diff --git a/src/xterm.c b/src/xterm.c index 6a574533a2c..8b0078d6af6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5308,7 +5308,7 @@ x_scroll_bar_expose (bar, event) /* Restore the foreground color of the GC if we changed it above. */ if (f->output_data.x->scroll_bar_foreground_pixel != -1) XSetForeground (FRAME_X_DISPLAY (f), gc, - f->output_data.x->foreground_pixel); + FRAME_FOREGROUND_PIXEL (f)); UNBLOCK_INPUT;